D6172: remotefilelog: prefetch files in deterministic order
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Mar 29 21:49:41 EDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0129bf02fa04: remotefilelog: prefetch files in deterministic order (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6172?vs=14603&id=14606
REVISION DETAIL
https://phab.mercurial-scm.org/D6172
AFFECTED FILES
hgext/remotefilelog/fileserverclient.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/fileserverclient.py b/hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py
+++ b/hgext/remotefilelog/fileserverclient.py
@@ -544,7 +544,7 @@
if fetchwarning:
self.ui.warn(fetchwarning + '\n')
self.logstacktrace()
- missingids = [(file, hex(id)) for file, id in missingids]
+ missingids = [(file, hex(id)) for file, id in sorted(missingids)]
fetched += len(missingids)
start = time.time()
missingids = self.request(missingids)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list