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