histedit: drop the 'nodetoverify' local variable
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 26 Aug 2016 20:38:37 +0200
changeset 29876 034d38b5f6fb
parent 29875 478e4a2a9952
child 29877 1c19d3efe15d
histedit: drop the 'nodetoverify' local variable We can just use 'action.node'.
hgext/histedit.py
--- a/hgext/histedit.py	Fri Aug 26 20:34:58 2016 +0200
+++ b/hgext/histedit.py	Fri Aug 26 20:38:37 2016 +0200
@@ -1385,9 +1385,8 @@
                 raise error.ParseError(_('unknown constraint "%s"') %
                         constraint)
 
-        nodetoverify = action.node
-        if nodetoverify is not None:
-            ha = node.hex(nodetoverify)
+        if action.node is not None:
+            ha = node.hex(action.node)
             if _constraints.noother in constraints and ha not in expected:
                 raise error.ParseError(
                     _('%s "%s" changeset was not a candidate')