Mercurial > hg-stable
changeset 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 | 8d4fac0a9df7 |
children | 2ececafa5859 |
files | hgext/mq.py tests/test-mq-qdelete tests/test-mq-qdelete.out |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
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)