--- 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()