Show More
@@ -2208,7 +2208,12 def add(ui, repo, match, prefix, explici | |||
|
2208 | 2208 | if abort or warn: |
|
2209 | 2209 | cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate) |
|
2210 | 2210 | |
|
2211 |
|
|
|
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 | 2217 | exact = match.exact(f) |
|
2213 | 2218 | if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f): |
|
2214 | 2219 | if cca: |
General Comments 0
You need to be logged in to leave comments.
Login now