mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
remotefilelog: skip uploadblobs for public revs
Summary: There is no need to upload content referred by a public commit. This affects cases like `debugstrip` (ex. for testing `pull` performance with a lagged commit graph). Without this change, the uploadrevs code path scans stripped public commits without efficient tree prefetching, which results in 1-by-1 tree fetches and is unusably slow. Reviewed By: xavierd Differential Revision: D21630096 fbshipit-source-id: 385edf76cb4eb913b2d64422910cdb46b603e6c0
This commit is contained in:
parent
513a4f8426
commit
e685e64758
@ -413,11 +413,10 @@ def reposetup(ui, repo):
|
||||
remotefilelogserver.onetimesetup(ui)
|
||||
|
||||
|
||||
def uploadblobs(repo, revs):
|
||||
def uploadblobs(repo, nodes):
|
||||
if repo.fileslog._ruststore:
|
||||
toupload = []
|
||||
for r in revs:
|
||||
ctx = repo[r]
|
||||
for ctx in repo.set("%ln - public()", nodes):
|
||||
for f in ctx.files():
|
||||
if f not in ctx:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user