D1924: exchange: make stream bundle part deterministic

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Jan 22 15:08:06 EST 2018


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

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)



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


More information about the Mercurial-devel mailing list