--- a/hgext3rd/evolve/cmdrewrite.py Mon Mar 12 15:51:34 2018 -0700
+++ b/hgext3rd/evolve/cmdrewrite.py Mon Mar 12 15:51:43 2018 -0700
@@ -1236,10 +1236,8 @@
if grabstate:
grabstate.delete()
- if newnode:
- compat.createmarkers(repo, [(origctx, (repo[newnode],))])
- else:
- compat.createmarkers(repo, [(origctx, (pctx,))])
+ newctx = repo[newnode] if newnode else pctx
+ compat.createmarkers(repo, [(origctx, (newctx,))], operation="grab")
if newnode is None:
ui.warn(_("note: grab of %d:%s created no changes to commit\n") %