Mercurial > hg
changeset 29876:034d38b5f6fb
histedit: drop the 'nodetoverify' local variable
We can just use 'action.node'.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 26 Aug 2016 20:38:37 +0200 |
parents | 478e4a2a9952 |
children | 1c19d3efe15d |
files | hgext/histedit.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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')