hgext/histedit.py
changeset 19039 41669a18a7d6
parent 19021 26b41a902195
child 19045 080b801c34f1
equal deleted inserted replaced
19038:36733ab7fa05 19039:41669a18a7d6
   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: