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
+++ b/hgext/mq.py
@@ -532,6 +532,9 @@ class queue:
         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)