Submitter | via Mercurial-devel |
---|---|
Date | June 18, 2017, 6:13 a.m. |
Message ID | <ae7a9461a249b94cf2eb.1497766435@martinvonz.svl.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/21473/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -1265,7 +1265,7 @@ samebranch = root.branch() == wctx.branch() else: samebranch = root.branch() == dest.branch() - if not collapse and samebranch and root in dest.children(): + if not collapse and samebranch and dest in root.parents(): # mark the revision as done by setting its new revision # equal to its old (current) revisions state[root.rev()] = root.rev()