##// END OF EJS Templates
py3: handle keyword arguments correctly in commands.py...
Pulkit Goyal -
r35353:920cca6c default
parent child Browse files
Show More
@@ -1278,6 +1278,7 b' def cat(ui, repo, file1, *pats, **opts):'
1278 1278
1279 1279 Returns 0 on success.
1280 1280 """
1281 opts = pycompat.byteskwargs(opts)
1281 1282 ctx = scmutil.revsingle(repo, opts.get('rev'))
1282 1283 m = scmutil.match(ctx, (file1,) + pats, opts)
1283 1284 fntemplate = opts.pop('output', '')
@@ -1290,7 +1291,8 b' def cat(ui, repo, file1, *pats, **opts):'
1290 1291 ui.pager('cat')
1291 1292 fm = ui.formatter('cat', opts)
1292 1293 with fm:
1293 return cmdutil.cat(ui, repo, ctx, m, fm, fntemplate, '', **opts)
1294 return cmdutil.cat(ui, repo, ctx, m, fm, fntemplate, '',
1295 **pycompat.strkwargs(opts))
1294 1296
1295 1297 @command('^clone',
1296 1298 [('U', 'noupdate', None, _('the clone will include an empty working '
@@ -1743,7 +1745,7 b" def debugcommands(ui, cmd='', *args):"
1743 1745 def debugcomplete(ui, cmd='', **opts):
1744 1746 """returns the completion list associated with the given command"""
1745 1747
1746 if opts.get('options'):
1748 if opts.get(r'options'):
1747 1749 options = []
1748 1750 otables = [globalopts]
1749 1751 if cmd:
General Comments 0
You need to be logged in to leave comments. Login now