Show More
@@ -358,7 +358,7 b' class histeditaction(object):' | |||
|
358 | 358 | rulehash = rule.strip().split(' ', 1)[0] |
|
359 | 359 | return cls(state, node.bin(rulehash)) |
|
360 | 360 | |
|
361 | def verify(self): | |
|
361 | def verify(self, prev): | |
|
362 | 362 | """ Verifies semantic correctness of the rule""" |
|
363 | 363 | repo = self.repo |
|
364 | 364 | ha = node.hex(self.node) |
@@ -1215,8 +1215,10 b' def verifyactions(actions, state, ctxs):' | |||
|
1215 | 1215 | """ |
|
1216 | 1216 | expected = set(c.hex() for c in ctxs) |
|
1217 | 1217 | seen = set() |
|
1218 | prev = None | |
|
1218 | 1219 | for action in actions: |
|
1219 | action.verify() | |
|
1220 | action.verify(prev) | |
|
1221 | prev = action | |
|
1220 | 1222 | constraints = action.constraints() |
|
1221 | 1223 | for constraint in constraints: |
|
1222 | 1224 | if constraint not in _constraints.known(): |
General Comments 0
You need to be logged in to leave comments.
Login now