diff mercurial/cmdutil.py @ 23462:afa3fbbcabd3

add: use lexists so that broken symbolic links are added This restores the add behavior prior to d8cdd46f426d and matches the behavior of addremove.
author John Coomes <john.coomes@oracle.com>
date Wed, 03 Dec 2014 14:33:29 -0800
parents 341e4798c24d
children 32e68271a037
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Dec 02 05:12:59 2014 +0100
+++ b/mercurial/cmdutil.py	Wed Dec 03 14:33:29 2014 -0800
@@ -1984,7 +1984,7 @@
         cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
     for f in wctx.walk(match):
         exact = match.exact(f)
-        if exact or not explicitonly and f not in wctx and repo.wvfs.exists(f):
+        if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f):
             if cca:
                 cca(f)
             names.append(f)