Mercurial > hg
changeset 14429:c4c5e3802e9c
workingctx.remove: don't stat files again after unlinking
we already know at this point that they have been unlinked
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 24 May 2011 14:52:23 +0200 |
parents | f0c43c63f742 |
children | c864f5e743ef |
files | mercurial/context.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)