111 > # very crude version of a changegroup part creation |
111 > # very crude version of a changegroup part creation |
112 > bundled = repo.revs('%ld::%ld', revs, revs) |
112 > bundled = repo.revs('%ld::%ld', revs, revs) |
113 > headmissing = [c.node() for c in repo.set('heads(%ld)', revs)] |
113 > headmissing = [c.node() for c in repo.set('heads(%ld)', revs)] |
114 > headcommon = [c.node() for c in repo.set('parents(%ld) - %ld', revs, revs)] |
114 > headcommon = [c.node() for c in repo.set('parents(%ld) - %ld', revs, revs)] |
115 > outgoing = discovery.outgoing(repo, headcommon, headmissing) |
115 > outgoing = discovery.outgoing(repo, headcommon, headmissing) |
116 > cg = changegroup.getchangegroup(repo, 'test:bundle2', outgoing) |
116 > cg = changegroup.getchangegroup(repo, 'test:bundle2', outgoing, None) |
117 > bundler.newpart('changegroup', data=cg.getchunks(), |
117 > bundler.newpart('changegroup', data=cg.getchunks(), |
118 > mandatory=False) |
118 > mandatory=False) |
119 > |
119 > |
120 > if opts['parts']: |
120 > if opts['parts']: |
121 > bundler.newpart('test:empty', mandatory=False) |
121 > bundler.newpart('test:empty', mandatory=False) |