##// END OF EJS Templates
add: pass full=False to dirstate walk...
Durham Goode -
r26206:ab1c6e4e default
parent child Browse files
Show More
@@ -2208,7 +2208,12 def add(ui, repo, match, prefix, explici
2208 if abort or warn:
2208 if abort or warn:
2209 cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
2209 cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
2210
2210
2211 for f in wctx.walk(matchmod.badmatch(match, badfn)):
2211 badmatch = matchmod.badmatch(match, badfn)
2212 dirstate = repo.dirstate
2213 # We don't want to just call wctx.walk here, since it would return a lot of
2214 # clean files, which we aren't interested in and takes time.
2215 for f in sorted(dirstate.walk(badmatch, sorted(wctx.substate),
2216 True, False, full=False)):
2212 exact = match.exact(f)
2217 exact = match.exact(f)
2213 if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f):
2218 if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f):
2214 if cca:
2219 if cca:
General Comments 0
You need to be logged in to leave comments. Login now