Show More
@@ -1499,13 +1499,14 b' def batchget(repo, mctx, wctx, actions):' | |||||
1499 | # If a file or directory exists with the same name, back that |
|
1499 | # If a file or directory exists with the same name, back that | |
1500 | # up. Otherwise, look to see if there is a file that conflicts |
|
1500 | # up. Otherwise, look to see if there is a file that conflicts | |
1501 | # with a directory this file is in, and if so, back that up. |
|
1501 | # with a directory this file is in, and if so, back that up. | |
1502 |
|
|
1502 | conflicting = f | |
1503 | if not repo.wvfs.lexists(f): |
|
1503 | if not repo.wvfs.lexists(f): | |
1504 | for p in util.finddirs(f): |
|
1504 | for p in util.finddirs(f): | |
1505 | if repo.wvfs.isfileorlink(p): |
|
1505 | if repo.wvfs.isfileorlink(p): | |
1506 |
|
|
1506 | conflicting = p | |
1507 | break |
|
1507 | break | |
1508 |
if repo.wvfs.lexists( |
|
1508 | if repo.wvfs.lexists(conflicting): | |
|
1509 | absf = repo.wjoin(conflicting) | |||
1509 | orig = scmutil.origpath(ui, repo, absf) |
|
1510 | orig = scmutil.origpath(ui, repo, absf) | |
1510 | util.rename(absf, orig) |
|
1511 | util.rename(absf, orig) | |
1511 | wctx[f].clearunknown() |
|
1512 | wctx[f].clearunknown() |
General Comments 0
You need to be logged in to leave comments.
Login now