Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHGdfcf589a4031: debugcommands: add some strkwargs love to some **args calls
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
yuja |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
batchedcommands.append((command, args)) | batchedcommands.append((command, args)) | ||||
continue | continue | ||||
ui.status(_('sending %s command\n') % command) | ui.status(_('sending %s command\n') % command) | ||||
if 'PUSHFILE' in args: | if 'PUSHFILE' in args: | ||||
with open(args['PUSHFILE'], r'rb') as fh: | with open(args['PUSHFILE'], r'rb') as fh: | ||||
del args['PUSHFILE'] | del args['PUSHFILE'] | ||||
res, output = peer._callpush(command, fh, **args) | res, output = peer._callpush(command, fh, | ||||
**pycompat.strkwargs(args)) | |||||
ui.status(_('result: %s\n') % util.escapedata(res)) | ui.status(_('result: %s\n') % util.escapedata(res)) | ||||
ui.status(_('remote output: %s\n') % | ui.status(_('remote output: %s\n') % | ||||
util.escapedata(output)) | util.escapedata(output)) | ||||
else: | else: | ||||
res = peer._call(command, **args) | res = peer._call(command, **pycompat.strkwargs(args)) | ||||
ui.status(_('response: %s\n') % util.escapedata(res)) | ui.status(_('response: %s\n') % util.escapedata(res)) | ||||
elif action == 'batchbegin': | elif action == 'batchbegin': | ||||
if batchedcommands is not None: | if batchedcommands is not None: | ||||
raise error.Abort(_('nested batchbegin not allowed')) | raise error.Abort(_('nested batchbegin not allowed')) | ||||
batchedcommands = [] | batchedcommands = [] | ||||
elif action == 'batchsubmit': | elif action == 'batchsubmit': |