mercurial/cmdutil.py
changeset 4573 97111071d26c
parent 4563 8044be585b91
child 4598 b25ee3f8f714
--- a/mercurial/cmdutil.py	Wed Jun 13 19:15:58 2007 -0300
+++ b/mercurial/cmdutil.py	Wed Jun 13 19:15:58 2007 -0300
@@ -574,9 +574,7 @@
             mapping[abs] = rel, exact
             if repo.ui.verbose or not exact:
                 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
-        islink = os.path.islink(target)
-        if (repo.dirstate.state(abs) != 'r' and not islink
-            and not os.path.exists(target)):
+        if repo.dirstate.state(abs) != 'r' and not util.lexists(target):
             remove.append(abs)
             mapping[abs] = rel, exact
             if repo.ui.verbose or not exact: