grab: include "operation" metadata in obsmarkers
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 12 Mar 2018 15:51:43 -0700
changeset 3569 236d36b17aa4
parent 3568 eca57332ad03
child 3570 2477bcdd95ff
grab: include "operation" metadata in obsmarkers
hgext3rd/evolve/cmdrewrite.py
--- 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") %