Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 14435:5f6090e559fa
context: make forget work like commands.forget
Switch users of wctx.delete(..., False) to forget.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 May 2011 17:15:35 -0500 |
parents | cc8c09855d19 |
children | 7d367e8f892d |
line wrap: on
line diff
--- 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()