Changeset View
Changeset View
Standalone View
Standalone View
src/repository/remote/ArcanistMercurialRepositoryRemoteQuery.php
Show All 25 Lines | foreach ($lines as $line) { | ||||
$name = $matches['name']; | $name = $matches['name']; | ||||
$uri = $matches['uri']; | $uri = $matches['uri']; | ||||
// NOTE: Mercurial gives some special behavior to "default" and | // NOTE: Mercurial gives some special behavior to "default" and | ||||
// "default-push", but these remotes are both fully-formed remotes that | // "default-push", but these remotes are both fully-formed remotes that | ||||
// are fetchable and pushable, they just have rules around selection | // are fetchable and pushable, they just have rules around selection | ||||
// as default targets for operations. | // as default targets for operations. | ||||
$ref = id(new ArcanistRemoteRef()) | $ref = (new ArcanistRemoteRef()) | ||||
->setRemoteName($name) | ->setRemoteName($name) | ||||
->setFetchURI($uri) | ->setFetchURI($uri) | ||||
->setPushURI($uri); | ->setPushURI($uri); | ||||
$refs[] = $ref; | $refs[] = $ref; | ||||
} | } | ||||
return $refs; | return $refs; | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0