mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-11 23:31:03 +01:00
Merge pull request #36 from phleet/hg-head-pull
Use .^ instead of HEAD^ for mercurial
This commit is contained in:
commit
194284500e
1 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,11 @@ EOTEXT
|
||||||
$revision_id = $this->normalizeRevisionID($this->getArgument('revision'));
|
$revision_id = $this->normalizeRevisionID($this->getArgument('revision'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$repository_api->setRelativeCommit('HEAD^');
|
if ($repository_api instanceof ArcanistGitAPI) {
|
||||||
|
$repository_api->setRelativeCommit('HEAD^');
|
||||||
|
} else if ($repository_api instanceof ArcanistMercurialAPI) {
|
||||||
|
$repository_api->setRelativeCommit('.^');
|
||||||
|
}
|
||||||
|
|
||||||
$in_working_copy = $repository_api->loadWorkingCopyDifferentialRevisions(
|
$in_working_copy = $repository_api->loadWorkingCopyDifferentialRevisions(
|
||||||
$this->getConduit(),
|
$this->getConduit(),
|
||||||
|
|
Loading…
Reference in a new issue