Show More
@@ -1058,7 +1058,7 b' def batchget(repo, mctx, actions):' | |||||
1058 | wwrite = repo.wwrite |
|
1058 | wwrite = repo.wwrite | |
1059 | ui = repo.ui |
|
1059 | ui = repo.ui | |
1060 | i = 0 |
|
1060 | i = 0 | |
1061 | if True: |
|
1061 | with repo.wvfs.backgroundclosing(ui, expectedcount=len(actions)): | |
1062 | for f, (flags, backup), msg in actions: |
|
1062 | for f, (flags, backup), msg in actions: | |
1063 | repo.ui.debug(" %s: %s -> g\n" % (f, msg)) |
|
1063 | repo.ui.debug(" %s: %s -> g\n" % (f, msg)) | |
1064 | if verbose: |
|
1064 | if verbose: | |
@@ -1077,7 +1077,7 b' def batchget(repo, mctx, actions):' | |||||
1077 | if e.errno != errno.ENOENT: |
|
1077 | if e.errno != errno.ENOENT: | |
1078 | raise |
|
1078 | raise | |
1079 |
|
1079 | |||
1080 | wwrite(f, fctx(f).data(), flags) |
|
1080 | wwrite(f, fctx(f).data(), flags, backgroundclose=True) | |
1081 | if i == 100: |
|
1081 | if i == 100: | |
1082 | yield i, f |
|
1082 | yield i, f | |
1083 | i = 0 |
|
1083 | i = 0 |
General Comments 0
You need to be logged in to leave comments.
Login now