histedit: drop the 'nodetoverify' local variable

We can just use 'action.node'.
This commit is contained in:
Pierre-Yves David 2016-08-26 20:38:37 +02:00
parent f113c210a5
commit 5dfe266b33

View File

@ -1385,9 +1385,8 @@ def verifyactions(actions, state, ctxs):
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')