hgext/mq.py
changeset 4736 04b2c1e27c26
parent 4730 eadfaa9ec487
child 4737 2ececafa5859
equal deleted inserted replaced
4735:8d4fac0a9df7 4736:04b2c1e27c26
   530                 break
   530                 break
   531         self.removeundo(repo)
   531         self.removeundo(repo)
   532         return (err, n)
   532         return (err, n)
   533 
   533 
   534     def delete(self, repo, patches, opts):
   534     def delete(self, repo, patches, opts):
       
   535         if not patches and not opts.get('rev'):
       
   536             raise util.Abort(_('missing patch name'))
       
   537 
   535         realpatches = []
   538         realpatches = []
   536         for patch in patches:
   539         for patch in patches:
   537             patch = self.lookup(patch, strict=True)
   540             patch = self.lookup(patch, strict=True)
   538             info = self.isapplied(patch)
   541             info = self.isapplied(patch)
   539             if info:
   542             if info: