mercurial/localrepo.py
changeset 4392 9770d260a405
parent 4375 109077e7048d
child 4417 0912d8df5e19
--- 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])