Patchwork D1924: exchange: make stream bundle part deterministic

login
register
mail settings
Submitter phabricator
Date Jan. 22, 2018, 8:08 p.m.
Message ID <0ea78340390c15a149bd6c4827d0fa58@localhost.localdomain>
Download mbox | patch
Permalink /patch/27034/
State Not Applicable
Headers show

Comments

phabricator - Jan. 22, 2018, 8:08 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG08cc94dd3d3c: exchange: make stream bundle part deterministic (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1924?vs=4965&id=4982

REVISION DETAIL
  https://phab.mercurial-scm.org/D1924

AFFECTED FILES
  mercurial/exchange.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, lothiraldan, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -1767,7 +1767,7 @@ 
     if not kwargs.get('stream', False):
         return
     filecount, bytecount, it = streamclone.generatev2(repo)
-    requirements = ' '.join(repo.requirements)
+    requirements = ' '.join(sorted(repo.requirements))
     part = bundler.newpart('stream', data=it)
     part.addparam('bytecount', '%d' % bytecount, mandatory=True)
     part.addparam('filecount', '%d' % filecount, mandatory=True)