equal
deleted
inserted
replaced
720 raise util.Abort(_('must specify a rule for each changeset once')) |
720 raise util.Abort(_('must specify a rule for each changeset once')) |
721 for r in rules: |
721 for r in rules: |
722 if ' ' not in r: |
722 if ' ' not in r: |
723 raise util.Abort(_('malformed line "%s"') % r) |
723 raise util.Abort(_('malformed line "%s"') % r) |
724 action, rest = r.split(' ', 1) |
724 action, rest = r.split(' ', 1) |
725 if ' ' in rest.strip(): |
725 ha = rest.strip().split(' ', 1)[0] |
726 ha, rest = rest.split(' ', 1) |
|
727 else: |
|
728 ha = r.strip() |
|
729 try: |
726 try: |
730 if repo[ha] not in ctxs: |
727 if repo[ha] not in ctxs: |
731 raise util.Abort( |
728 raise util.Abort( |
732 _('may not use changesets other than the ones listed')) |
729 _('may not use changesets other than the ones listed')) |
733 except error.RepoError: |
730 except error.RepoError: |