hgext3rd/pullbundle.py
changeset 4147 88e922eca4e2
parent 4145 08b3c370e8b3
child 4148 5ef93dbace5e
--- 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))