hgext/mq.py
changeset 4736 04b2c1e27c26
parent 4730 eadfaa9ec487
child 4737 2ececafa5859
--- 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)