Show More
@@ -724,11 +724,12 b' def verifyrules(rules, repo, ctxs):' | |||||
724 | action, rest = r.split(' ', 1) |
|
724 | action, rest = r.split(' ', 1) | |
725 | ha = rest.strip().split(' ', 1)[0] |
|
725 | ha = rest.strip().split(' ', 1)[0] | |
726 | try: |
|
726 | try: | |
727 | if repo[ha] not in ctxs: |
|
727 | ha = str(repo[ha]) # ensure its a short hash | |
728 | raise util.Abort( |
|
|||
729 | _('may not use changesets other than the ones listed')) |
|
|||
730 | except error.RepoError: |
|
728 | except error.RepoError: | |
731 | raise util.Abort(_('unknown changeset %s listed') % ha) |
|
729 | raise util.Abort(_('unknown changeset %s listed') % ha) | |
|
730 | if repo[ha] not in ctxs: | |||
|
731 | raise util.Abort( | |||
|
732 | _('may not use changesets other than the ones listed')) | |||
732 | if action not in actiontable: |
|
733 | if action not in actiontable: | |
733 | raise util.Abort(_('unknown action "%s"') % action) |
|
734 | raise util.Abort(_('unknown action "%s"') % action) | |
734 | parsed.append([action, ha]) |
|
735 | parsed.append([action, ha]) |
General Comments 0
You need to be logged in to leave comments.
Login now