changeset 4134 | 9dc64c8414ca |
parent 4100 | c30c922f907a |
parent 4133 | a9ee6c53af8d |
child 4182 | ba51a8225a60 |
--- a/hgext/mq.py Sat Mar 03 18:59:54 2007 -0800 +++ b/hgext/mq.py Sun Mar 04 09:03:21 2007 -0300 @@ -1738,7 +1738,10 @@ if patch is None: raise util.Abort(_('no patch to work with')) if args or opts['none']: - q.set_guards(q.find_series(patch), args) + idx = q.find_series(patch) + if idx is None: + raise util.Abort(_('no patch named %s') % patch) + q.set_guards(idx, args) q.save_dirty() else: status(q.series.index(q.lookup(patch)))