Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 4736:04b2c1e27c26
mq: require patch argument or revision for qdelete
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 28 Jun 2007 08:42:43 -0700 |
parents | eadfaa9ec487 |
children | 2ececafa5859 |
line wrap: on
line diff
--- a/hgext/mq.py Thu Jun 28 16:18:09 2007 +0200 +++ b/hgext/mq.py Thu Jun 28 08:42:43 2007 -0700 @@ -532,6 +532,9 @@ return (err, n) def delete(self, repo, patches, opts): + if not patches and not opts.get('rev'): + raise util.Abort(_('missing patch name')) + realpatches = [] for patch in patches: patch = self.lookup(patch, strict=True)