mercurial/cmdutil.py
changeset 12032 ad787252fed6
parent 11958 60bfb876dc45
child 12085 6f833fc3ccab
--- a/mercurial/cmdutil.py	Wed Aug 25 13:40:46 2010 +0200
+++ b/mercurial/cmdutil.py	Wed Aug 25 16:23:32 2010 +0200
@@ -297,7 +297,7 @@
             unknown.append(abs)
             if repo.ui.verbose or not exact:
                 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
-        elif repo.dirstate[abs] != 'r' and (not good or not util.lexists(target)
+        elif repo.dirstate[abs] != 'r' and (not good or not os.path.lexists(target)
             or (os.path.isdir(target) and not os.path.islink(target))):
             deleted.append(abs)
             if repo.ui.verbose or not exact: