Show More
@@ -584,9 +584,9 def getsubsetraw(repo, outgoing, bundler | |||
|
584 | 584 | _changegroupinfo(repo, csets, source) |
|
585 | 585 | return bundler.generate(commonrevs, csets, fastpathlinkrev, source) |
|
586 | 586 | |
|
587 |
def getsubset(repo, outgoing, bundler, source, fastpath=False |
|
|
587 | def getsubset(repo, outgoing, bundler, source, fastpath=False): | |
|
588 | 588 | gengroup = getsubsetraw(repo, outgoing, bundler, source, fastpath) |
|
589 | return packermap[version][1](util.chunkbuffer(gengroup), None) | |
|
589 | return packermap[bundler.version][1](util.chunkbuffer(gengroup), None) | |
|
590 | 590 | |
|
591 | 591 | def changegroupsubset(repo, roots, heads, source, version='01'): |
|
592 | 592 | """Compute a changegroup consisting of all the nodes that are |
@@ -613,7 +613,7 def changegroupsubset(repo, roots, heads | |||
|
613 | 613 | discbases = [n for n in discbases if n not in included] |
|
614 | 614 | outgoing = discovery.outgoing(cl, discbases, heads) |
|
615 | 615 | bundler = packermap[version][0](repo) |
|
616 |
return getsubset(repo, outgoing, bundler, source |
|
|
616 | return getsubset(repo, outgoing, bundler, source) | |
|
617 | 617 | |
|
618 | 618 | def getlocalchangegroupraw(repo, source, outgoing, bundlecaps=None, |
|
619 | 619 | version='01'): |
@@ -63,7 +63,7 test bundle types | |||
|
63 | 63 | 1 changesets found |
|
64 | 64 | HG20\x00\x00 (esc) |
|
65 | 65 | Stream params: {} |
|
66 |
changegroup -- "{'version': '0 |
|
|
66 | changegroup -- "{'version': '02'}" | |
|
67 | 67 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf |
|
68 | 68 | |
|
69 | 69 | % test bundle type v2 |
@@ -71,7 +71,7 test bundle types | |||
|
71 | 71 | 1 changesets found |
|
72 | 72 | HG20\x00\x00 (esc) |
|
73 | 73 | Stream params: {'Compression': 'BZ'} |
|
74 |
changegroup -- "{'version': '0 |
|
|
74 | changegroup -- "{'version': '02'}" | |
|
75 | 75 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf |
|
76 | 76 | |
|
77 | 77 | % test bundle type v1 |
General Comments 0
You need to be logged in to leave comments.
Login now