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