hgext/mq.py
changeset 14435 5f6090e559fa
parent 14434 cc8c09855d19
child 14448 7d367e8f892d
--- a/hgext/mq.py	Thu May 26 17:15:35 2011 -0500
+++ b/hgext/mq.py	Thu May 26 17:15:35 2011 -0500
@@ -735,10 +735,9 @@
         if not keep:
             r = self.qrepo()
             if r:
-                r[None].remove(patches, True)
-            else:
-                for p in patches:
-                    os.unlink(self.join(p))
+                r[None].forget(patches)
+            for p in patches:
+                os.unlink(self.join(p))
 
         if numrevs:
             qfinished = self.applied[:numrevs]
@@ -2623,7 +2622,7 @@
                 if r.dirstate[name] == 'r':
                     wctx.undelete([name])
                 wctx.copy(patch, name)
-                wctx.remove([patch], False)
+                wctx.forget([patch])
         finally:
             wlock.release()