Mercurial > evolve
changeset 3569:236d36b17aa4
grab: include "operation" metadata in obsmarkers
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 12 Mar 2018 15:51:43 -0700 |
parents | eca57332ad03 |
children | 2477bcdd95ff |
files | hgext3rd/evolve/cmdrewrite.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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") %