##// END OF EJS Templates
py3: handle keyword arguments correctly in debugcommands.py...
Pulkit Goyal -
r35402:cd3392cb default
parent child Browse files
Show More
@@ -368,6 +368,7 b' def debugbundle(ui, bundlepath, all=None'
368 368 norepo=True)
369 369 def debugcapabilities(ui, path, **opts):
370 370 """lists the capabilities of a remote peer"""
371 opts = pycompat.byteskwargs(opts)
371 372 peer = hg.peer(ui, opts, path)
372 373 caps = peer.capabilities()
373 374 ui.write(('Main capabilities:\n'))
@@ -870,6 +871,7 b' def debugformat(ui, repo, **opts):'
870 871
871 872 Use --verbose to get extra information about current config value and
872 873 Mercurial default."""
874 opts = pycompat.byteskwargs(opts)
873 875 maxvariantlength = max(len(fv.name) for fv in upgrade.allformatvariant)
874 876 maxvariantlength = max(len('format-variant'), maxvariantlength)
875 877
@@ -2324,7 +2326,7 b' def debugsuccessorssets(ui, repo, *revs,'
2324 2326 ctx = repo[rev]
2325 2327 ui.write('%s\n'% ctx2str(ctx))
2326 2328 for succsset in obsutil.successorssets(repo, ctx.node(),
2327 closest=opts['closest'],
2329 closest=opts[r'closest'],
2328 2330 cache=cache):
2329 2331 if succsset:
2330 2332 ui.write(' ')
@@ -2450,6 +2452,7 b' def debugwireargs(ui, repopath, *vals, *'
2450 2452 for k, v in opts.iteritems():
2451 2453 if v:
2452 2454 args[k] = v
2455 args = pycompat.strkwargs(args)
2453 2456 # run twice to check that we don't mess up the stream for the next command
2454 2457 res1 = repo.debugwireargs(*vals, **args)
2455 2458 res2 = repo.debugwireargs(*vals, **args)
General Comments 0
You need to be logged in to leave comments. Login now