Mercurial > hg
comparison hgext/histedit.py @ 27170:4cff4c38c5cc
histedit: add missing raise keyword to statement
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 02 Dec 2015 07:40:42 +0000 |
parents | dd214130a4f6 |
children | 3028ea0aff46 |
comparison
equal
deleted
inserted
replaced
27169:dd214130a4f6 | 27170:4cff4c38c5cc |
---|---|
1155 raise error.Abort(_('unknown action "%s"') % verb) | 1155 raise error.Abort(_('unknown action "%s"') % verb) |
1156 action = actiontable[verb].fromrule(state, rest) | 1156 action = actiontable[verb].fromrule(state, rest) |
1157 constraints = action.constraints() | 1157 constraints = action.constraints() |
1158 for constraint in constraints: | 1158 for constraint in constraints: |
1159 if constraint not in _constraints.known(): | 1159 if constraint not in _constraints.known(): |
1160 error.Abort(_('unknown constraint "%s"') % constraint) | 1160 raise error.Abort(_('unknown constraint "%s"') % constraint) |
1161 | 1161 |
1162 nodetoverify = action.nodetoverify() | 1162 nodetoverify = action.nodetoverify() |
1163 if nodetoverify is not None: | 1163 if nodetoverify is not None: |
1164 ha = node.hex(nodetoverify) | 1164 ha = node.hex(nodetoverify) |
1165 if _constraints.noother in constraints and ha not in expected: | 1165 if _constraints.noother in constraints and ha not in expected: |