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