mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix an issue where Mercurial pushes would consider only the first and last commits
Summary: Fixes T5197. `hg log --rev x --rev y` means "rev x, and also rev y". Use `--rev x:y`, which means "all commits between x and y, inclusive". Test Plan: Pushed 4 commits at once, got 4 commits in push log. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5197 Differential Revision: https://secure.phabricator.com/D9309
This commit is contained in:
parent
66af361f10
commit
0d87fef573
1 changed files with 2 additions and 2 deletions
|
@ -695,8 +695,8 @@ final class DiffusionCommitHookEngine extends Phobject {
|
|||
$futures['old']->updateEnv('HG_PENDING', null);
|
||||
|
||||
$futures['commits'] = $repository->getLocalCommandFuture(
|
||||
"log --rev %s --rev tip --template %s",
|
||||
hgsprintf('%s', $hg_node),
|
||||
'log --rev %s --template %s',
|
||||
hgsprintf('%s:%s', $hg_node, 'tip'),
|
||||
'{node}\1{branches}\2');
|
||||
|
||||
// Resolve all of the futures now. We don't need the 'commits' future yet,
|
||||
|
|
Loading…
Reference in a new issue