Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 5334:448eb46d4d84
mq: fix qrefresh -e with no patches applied
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 24 Sep 2007 19:00:11 -0300 |
parents | 438ff951df70 |
children | 24de027551c1 |
line wrap: on
line diff
--- a/hgext/mq.py Mon Sep 24 19:00:11 2007 -0300 +++ b/hgext/mq.py Mon Sep 24 19:00:11 2007 -0300 @@ -1607,6 +1607,9 @@ q = repo.mq message = cmdutil.logmessage(opts) if opts['edit']: + if not q.applied: + ui.write(_("No patches applied\n")) + return 1 if message: raise util.Abort(_('option "-e" incompatible with "-m" or "-l"')) patch = q.applied[-1].name