##// END OF EJS Templates
histedit: ensure rules return short hex at all time...
Pierre-Yves David -
r19045:080b801c default
parent child Browse files
Show More
@@ -724,11 +724,12 def verifyrules(rules, repo, ctxs):
724 724 action, rest = r.split(' ', 1)
725 725 ha = rest.strip().split(' ', 1)[0]
726 726 try:
727 ha = str(repo[ha]) # ensure its a short hash
728 except error.RepoError:
729 raise util.Abort(_('unknown changeset %s listed') % ha)
727 730 if repo[ha] not in ctxs:
728 731 raise util.Abort(
729 732 _('may not use changesets other than the ones listed'))
730 except error.RepoError:
731 raise util.Abort(_('unknown changeset %s listed') % ha)
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