# HG changeset patch # User Pierre-Yves David # Date 1472236938 -7200 # Node ID 1c19d3efe15dbe5a2d1738251b9d34b73a3fcfbe # Parent 034d38b5f6fb95f58d16039a8fa4209cb3513ee9 histedit: temporarily shorten name of 'constraints' variable An upcoming changeset will make the line where this variable is used slightly too long. Other later changesets will clean that up further and makes the variable unnecessary, so this is only temporary and it does seems useful to put anything more complicate in place. diff -r 034d38b5f6fb -r 1c19d3efe15d hgext/histedit.py --- a/hgext/histedit.py Fri Aug 26 20:38:37 2016 +0200 +++ b/hgext/histedit.py Fri Aug 26 20:42:18 2016 +0200 @@ -1379,25 +1379,25 @@ for action in actions: action.verify(prev) prev = action - constraints = action.constraints - for constraint in constraints: + constrs = action.constraints + for constraint in constrs: if constraint not in _constraints.known(): raise error.ParseError(_('unknown constraint "%s"') % constraint) if action.node is not None: ha = node.hex(action.node) - if _constraints.noother in constraints and ha not in expected: + if _constraints.noother in constrs and ha not in expected: raise error.ParseError( _('%s "%s" changeset was not a candidate') % (action.verb, ha[:12]), hint=_('only use listed changesets')) - if _constraints.forceother in constraints and ha in expected: + if _constraints.forceother in constrs and ha in expected: raise error.ParseError( _('%s "%s" changeset was not an edited list candidate') % (action.verb, ha[:12]), hint=_('only use listed changesets')) - if _constraints.noduplicates in constraints and ha in seen: + if _constraints.noduplicates in constrs and ha in seen: raise error.ParseError(_( 'duplicated command for changeset %s') % ha[:12])