Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG0b697c650b04: bundle2: part id is an int, use %d to make it bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/bundle2.py (2 lines) |
rpart.addparam( | rpart.addparam( | ||||
'in-reply-to', pycompat.bytestr(inpart.id), mandatory=False) | 'in-reply-to', pycompat.bytestr(inpart.id), mandatory=False) | ||||
rpart.addparam('return', '%i' % ret, mandatory=False) | rpart.addparam('return', '%i' % ret, mandatory=False) | ||||
if inpart.mandatory and not ret: | if inpart.mandatory and not ret: | ||||
kwargs = {} | kwargs = {} | ||||
for key in ('namespace', 'key', 'new', 'old', 'ret'): | for key in ('namespace', 'key', 'new', 'old', 'ret'): | ||||
if key in inpart.params: | if key in inpart.params: | ||||
kwargs[key] = inpart.params[key] | kwargs[key] = inpart.params[key] | ||||
raise error.PushkeyFailed(partid=str(inpart.id), | raise error.PushkeyFailed(partid='%d' % inpart.id, | ||||
**pycompat.strkwargs(kwargs)) | **pycompat.strkwargs(kwargs)) | ||||
@parthandler('bookmarks') | @parthandler('bookmarks') | ||||
def handlebookmark(op, inpart): | def handlebookmark(op, inpart): | ||||
"""transmit bookmark information | """transmit bookmark information | ||||
The part contains binary encoded bookmark information. | The part contains binary encoded bookmark information. | ||||