# HG changeset patch # User Adrian Buehlmann # Date 2011-05-24 12:52:23 # Node ID c4c5e3802e9c4b8af96e81cedebac8fda3fe6995 # Parent f0c43c63f742a83eedbce4a63221fa551ca7b2d8 workingctx.remove: don't stat files again after unlinking we already know at this point that they have been unlinked diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -862,9 +862,7 @@ class workingctx(changectx): if inst.errno != errno.ENOENT: raise for f in list: - if unlink and os.path.lexists(self._repo.wjoin(f)): - self._repo.ui.warn(_("%s still exists!\n") % f) - elif self._repo.dirstate[f] == 'a': + if self._repo.dirstate[f] == 'a': self._repo.dirstate.forget(f) elif f not in self._repo.dirstate: self._repo.ui.warn(_("%s not tracked!\n") % f)