diff hgext3rd/pullbundle.py @ 4140:9b71aa222f8e

pullbundle: issue local branches in the right order
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 25 Sep 2018 13:29:49 +0200
parents 2bd652bece97
children 1421ff5c5c96
line wrap: on
line diff
--- a/hgext3rd/pullbundle.py	Tue Sep 25 12:53:34 2018 +0200
+++ b/hgext3rd/pullbundle.py	Tue Sep 25 13:29:49 2018 +0200
@@ -183,13 +183,13 @@
                     break
                 slicerevs.append(r)
             slicenodes = [node(r) for r in slicerevs]
-            localslices.extend(canonicalslices(repo, slicenodes))
+            localslices.append(canonicalslices(repo, slicenodes))
             missingrevs.difference_update(slicerevs)
             localmissing.difference_update(slicerevs)
             if localmissing:
                 head = max(localmissing)
-
-        allslices.extend(localslices)
+        for s in reversed(localslices):
+            allslices.extend(s)
     # unknown subrange might had to be computed
     repo.stablerange.save(repo)
     return [(rangeid, outgoingfromnodes(repo, nodes))