Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/mq.py @ 4134:9dc64c8414ca
Merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 04 Mar 2007 09:03:21 -0300 |
parents | c30c922f907a a9ee6c53af8d |
children | ba51a8225a60 |
line wrap: on
line diff
--- a/hgext/mq.py +++ b/hgext/mq.py @@ -1738,7 +1738,10 @@ def guard(ui, repo, *args, **opts): 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)))