Patchwork D6172: remotefilelog: prefetch files in deterministic order

login
register
mail settings
Submitter phabricator
Date March 30, 2019, 1:49 a.m.
Message ID <b0947a7fcb2d6bf2df647bece40dce04@localhost.localdomain>
Download mbox | patch
Permalink /patch/39414/
State Not Applicable
Headers show

Comments

phabricator - March 30, 2019, 1:49 a.m.
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




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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)