diff hgext3rd/pullbundle.py @ 4147:88e922eca4e2

pullbundle: deal with head in a predicable order We use node order to make this repeatable from one clone to another. This is an arbitrary pick.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 26 Sep 2018 18:42:44 +0200
parents 08b3c370e8b3
children 5ef93dbace5e
line wrap: on
line diff
--- a/hgext3rd/pullbundle.py	Wed Sep 26 17:17:11 2018 +0200
+++ b/hgext3rd/pullbundle.py	Wed Sep 26 18:42:44 2018 +0200
@@ -184,7 +184,7 @@
 
     missingrevs = set(rev(n) for n in outgoing.missing)
     allslices = []
-    missingheads = [rev(n) for n in outgoing.missingheads]
+    missingheads = [rev(n) for n in sorted(outgoing.missingheads, reverse=True)]
     for head in missingheads:
         localslices = []
         localmissing = set(repo.revs('%ld and ::%d', missingrevs, head))