histedit: avoid converting nodeid to context and back again
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 27 Sep 2016 22:09:28 -0700
changeset 30025 4d9999e43ff7
parent 30024 f3c4edfd35e1
child 30026 ba06562a06a2
histedit: avoid converting nodeid to context and back again It looks like this became unnecessary in e767f5aba810 (histedit: fix preventing strips during histedit, 2015-04-04).
hgext/histedit.py
--- a/hgext/histedit.py	Tue Sep 13 22:58:12 2016 -0400
+++ b/hgext/histedit.py	Tue Sep 27 22:09:28 2016 -0700
@@ -1572,8 +1572,7 @@
         state.read()
         histedit_nodes = set([action.node for action
                              in state.actions if action.node])
-        strip_nodes = set([repo[n].node() for n in nodelist])
-        common_nodes = histedit_nodes & strip_nodes
+        common_nodes = histedit_nodes & set(nodelist)
         if common_nodes:
             raise error.Abort(_("histedit in progress, can't strip %s")
                              % ', '.join(node.short(x) for x in common_nodes))