Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG5da299dabdc1: tests: avoid repo.lookup() for converting revnum to nodeid
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-bundle2-remote-changegroup.t (4 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
> part.addparam('digests', digest) | > part.addparam('digests', digest) | ||||
> part.addparam('digest:%s' % digest, d[digest]) | > part.addparam('digest:%s' % digest, d[digest]) | ||||
> elif verb == 'raw-remote-changegroup': | > elif verb == 'raw-remote-changegroup': | ||||
> part = newpart('remote-changegroup') | > part = newpart('remote-changegroup') | ||||
> for k, v in eval(args).items(): | > for k, v in eval(args).items(): | ||||
> part.addparam(k, str(v)) | > part.addparam(k, str(v)) | ||||
> elif verb == 'changegroup': | > elif verb == 'changegroup': | ||||
> _common, heads = args.split() | > _common, heads = args.split() | ||||
> common.extend(repo.lookup(r) for r in repo.revs(_common)) | > common.extend(repo[r].node() for r in repo.revs(_common)) | ||||
> heads = [repo.lookup(r) for r in repo.revs(heads)] | > heads = [repo[r].node() for r in repo.revs(heads)] | ||||
> outgoing = discovery.outgoing(repo, common, heads) | > outgoing = discovery.outgoing(repo, common, heads) | ||||
> cg = changegroup.makechangegroup(repo, outgoing, '01', | > cg = changegroup.makechangegroup(repo, outgoing, '01', | ||||
> 'changegroup') | > 'changegroup') | ||||
> newpart('changegroup', cg.getchunks()) | > newpart('changegroup', cg.getchunks()) | ||||
> else: | > else: | ||||
> raise Exception('unknown verb') | > raise Exception('unknown verb') | ||||
> | > | ||||
> exchange.getbundle2partsmapping['changegroup'] = _getbundlechangegrouppart | > exchange.getbundle2partsmapping['changegroup'] = _getbundlechangegrouppart |