mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
histedit: drop the 'nodetoverify' local variable
We can just use 'action.node'.
This commit is contained in:
parent
f113c210a5
commit
5dfe266b33
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user