diff hgext/mq.py @ 3373:58202386deb7

mq: make qdelete without -k or a subrepository delete all patches
author Brendan Cully <brendan@kublai.com>
date Thu, 12 Oct 2006 14:02:41 -0700
parents 9851f46d6ecc
children 2d35a8d2b32d
line wrap: on
line diff
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -521,7 +521,8 @@ class queue:
             if r:
                 r.remove(realpatches, True)
             else:
-                os.unlink(self.join(patch))
+                for p in realpatches:
+                    os.unlink(self.join(p))
 
         if appliedbase:
             del self.applied[:appliedbase]