Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 4392:9770d260a405
Make rm --after simply mark files as removed, unless --force is also given
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 30 Apr 2007 08:51:59 -0700 |
parents | 109077e7048d |
children | 0912d8df5e19 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Apr 29 18:17:35 2007 -0700 +++ b/mercurial/localrepo.py Mon Apr 30 08:51:59 2007 -0700 @@ -1031,8 +1031,7 @@ if not wlock: wlock = self.wlock() for f in list: - p = self.wjoin(f) - if os.path.exists(p): + if unlink and os.path.exists(self.wjoin(f)): self.ui.warn(_("%s still exists!\n") % f) elif self.dirstate.state(f) == 'a': self.dirstate.forget([f])