Mercurial > evolve
comparison 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 |
comparison
equal
deleted
inserted
replaced
4146:f7aa0ecae3a4 | 4147:88e922eca4e2 |
---|---|
182 node = cl.node | 182 node = cl.node |
183 revsort = repo.stablesort | 183 revsort = repo.stablesort |
184 | 184 |
185 missingrevs = set(rev(n) for n in outgoing.missing) | 185 missingrevs = set(rev(n) for n in outgoing.missing) |
186 allslices = [] | 186 allslices = [] |
187 missingheads = [rev(n) for n in outgoing.missingheads] | 187 missingheads = [rev(n) for n in sorted(outgoing.missingheads, reverse=True)] |
188 for head in missingheads: | 188 for head in missingheads: |
189 localslices = [] | 189 localslices = [] |
190 localmissing = set(repo.revs('%ld and ::%d', missingrevs, head)) | 190 localmissing = set(repo.revs('%ld and ::%d', missingrevs, head)) |
191 while localmissing: | 191 while localmissing: |
192 slicerevs = [] | 192 slicerevs = [] |