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()