tests/test-bundle2-format.t
changeset 32287 df3cf9422e1b
parent 32167 d62626233aa2
child 32337 46ba2cdda476
equal deleted inserted replaced
32286:539cbe0f8fa3 32287:df3cf9422e1b
   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)