Mercurial > hg
diff mercurial/patch.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 | 0174d1f79280 |
children | cbe13e6bdc34 |
line wrap: on
line diff
--- a/mercurial/patch.py Thu May 26 17:15:35 2011 -0500 +++ b/mercurial/patch.py Thu May 26 17:15:35 2011 -0500 @@ -489,7 +489,7 @@ scmutil.dirstatecopy(self.ui, self.repo, wctx, src, dst) addremoved.discard(src) if (not self.similarity) and self.removed: - wctx.remove(sorted(self.removed)) + wctx.forget(sorted(self.removed)) if addremoved: cwd = self.repo.getcwd() if cwd: