D3753: graft: store the node from where we started the operation in graftstate
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Jun 15 20:10:03 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This will help us in updating to the start node when the user does `hg graft
--abort`.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3753
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2233,6 +2233,8 @@
raise error.Abort(_('no revisions specified'))
cmdutil.checkunfinished(repo)
cmdutil.bailifchanged(repo)
+ # the node from where we started the graft operation
+ statedata['startnode'] = repo['.'].node()
revs = scmutil.revrange(repo, revs)
skipped = set()
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list