##// END OF EJS Templates
largefiles: optimize performance when updating (issue3440)...
Na'Tosha Bard -
r16700:28001e8a default
parent child Browse files
Show More
@@ -365,7 +365,7 b' def verifylfiles(ui, repo, all=False, co'
365 365 store = basestore._openstore(repo)
366 366 return store.verify(revs, contents=contents)
367 367
368 def cachelfiles(ui, repo, node):
368 def cachelfiles(ui, repo, node, filelist=None):
369 369 '''cachelfiles ensures that all largefiles needed by the specified revision
370 370 are present in the repository's largefile cache.
371 371
@@ -373,6 +373,8 b' def cachelfiles(ui, repo, node):'
373 373 by this operation; missing is the list of files that were needed but could
374 374 not be found.'''
375 375 lfiles = lfutil.listlfiles(repo, node)
376 if filelist:
377 lfiles = set(lfiles) & set(filelist)
376 378 toget = []
377 379
378 380 for lfile in lfiles:
@@ -431,7 +433,7 b' def updatelfiles(ui, repo, filelist=None'
431 433 if printmessage and lfiles:
432 434 ui.status(_('getting changed largefiles\n'))
433 435 printed = True
434 cachelfiles(ui, repo, '.')
436 cachelfiles(ui, repo, '.', lfiles)
435 437
436 438 updated, removed = 0, 0
437 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