pick: use scmutil.cleanupnodes()
A side-effect is that `pick` should now also move bookmarks.
--- a/hgext3rd/evolve/cmdrewrite.py Tue Jan 22 09:45:25 2019 -0800
+++ b/hgext3rd/evolve/cmdrewrite.py Tue Jan 22 10:32:44 2019 -0800
@@ -1468,7 +1468,8 @@
if pickstate:
pickstate.delete()
newctx = repo[newnode] if newnode else pctx
- obsolete.createmarkers(repo, [(origctx, (newctx,))], operation="pick")
+ replacements = {origctx.node(): [newctx.node()]}
+ scmutil.cleanupnodes(repo, replacements, operation="pick")
if newnode is None:
ui.warn(_("note: picking %d:%s created no changes to commit\n") %