Show More
@@ -365,7 +365,7 b' def verifylfiles(ui, repo, all=False, co' | |||||
365 | store = basestore._openstore(repo) |
|
365 | store = basestore._openstore(repo) | |
366 | return store.verify(revs, contents=contents) |
|
366 | return store.verify(revs, contents=contents) | |
367 |
|
367 | |||
368 | def cachelfiles(ui, repo, node): |
|
368 | def cachelfiles(ui, repo, node, filelist=None): | |
369 | '''cachelfiles ensures that all largefiles needed by the specified revision |
|
369 | '''cachelfiles ensures that all largefiles needed by the specified revision | |
370 | are present in the repository's largefile cache. |
|
370 | are present in the repository's largefile cache. | |
371 |
|
371 | |||
@@ -373,6 +373,8 b' def cachelfiles(ui, repo, node):' | |||||
373 | by this operation; missing is the list of files that were needed but could |
|
373 | by this operation; missing is the list of files that were needed but could | |
374 | not be found.''' |
|
374 | not be found.''' | |
375 | lfiles = lfutil.listlfiles(repo, node) |
|
375 | lfiles = lfutil.listlfiles(repo, node) | |
|
376 | if filelist: | |||
|
377 | lfiles = set(lfiles) & set(filelist) | |||
376 | toget = [] |
|
378 | toget = [] | |
377 |
|
379 | |||
378 | for lfile in lfiles: |
|
380 | for lfile in lfiles: | |
@@ -431,7 +433,7 b' def updatelfiles(ui, repo, filelist=None' | |||||
431 | if printmessage and lfiles: |
|
433 | if printmessage and lfiles: | |
432 | ui.status(_('getting changed largefiles\n')) |
|
434 | ui.status(_('getting changed largefiles\n')) | |
433 | printed = True |
|
435 | printed = True | |
434 | cachelfiles(ui, repo, '.') |
|
436 | cachelfiles(ui, repo, '.', lfiles) | |
435 |
|
437 | |||
436 | updated, removed = 0, 0 |
|
438 | updated, removed = 0, 0 | |
437 | for i in map(lambda f: _updatelfile(repo, lfdirstate, f), lfiles): |
|
439 | for i in map(lambda f: _updatelfile(repo, lfdirstate, f), lfiles): |
General Comments 0
You need to be logged in to leave comments.
Login now