workingctx.remove: don't stat files again after unlinking
authorAdrian Buehlmann <adrian@cadifra.com>
Tue, 24 May 2011 14:52:23 +0200
changeset 14429 c4c5e3802e9c
parent 14428 f0c43c63f742
child 14430 c864f5e743ef
workingctx.remove: don't stat files again after unlinking we already know at this point that they have been unlinked
mercurial/context.py
--- a/mercurial/context.py	Tue May 24 17:16:31 2011 -0500
+++ b/mercurial/context.py	Tue May 24 14:52:23 2011 +0200
@@ -862,9 +862,7 @@
                         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)