##// END OF EJS Templates
add: check for the existence of a file matched inexactly before adding it...
Matt Harbison -
r23391:d8cdd46f default
parent child Browse files
Show More
@@ -1984,7 +1984,7 b' def add(ui, repo, match, dryrun, listsub'
1984 cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
1984 cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
1985 for f in wctx.walk(match):
1985 for f in wctx.walk(match):
1986 exact = match.exact(f)
1986 exact = match.exact(f)
1987 if exact or not explicitonly and f not in wctx:
1987 if exact or not explicitonly and f not in wctx and repo.wvfs.exists(f):
1988 if cca:
1988 if cca:
1989 cca(f)
1989 cca(f)
1990 names.append(f)
1990 names.append(f)
General Comments 0
You need to be logged in to leave comments. Login now