Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG7f410793c04d: py3: handle keyword arguments correctly in help.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
for f in fns: | for f in fns: | ||||
if ui.verbose: | if ui.verbose: | ||||
commacmds = cmds[f].replace("|",", ") | commacmds = cmds[f].replace("|",", ") | ||||
rst.append(" :%s: %s\n" % (commacmds, h[f])) | rst.append(" :%s: %s\n" % (commacmds, h[f])) | ||||
else: | else: | ||||
rst.append(' :%s: %s\n' % (f, h[f])) | rst.append(' :%s: %s\n' % (f, h[f])) | ||||
ex = opts.get | ex = opts.get | ||||
anyopts = (ex('keyword') or not (ex('command') or ex('extension'))) | anyopts = (ex(r'keyword') or not (ex(r'command') or ex(r'extension'))) | ||||
if not name and anyopts: | if not name and anyopts: | ||||
exts = listexts(_('enabled extensions:'), extensions.enabled()) | exts = listexts(_('enabled extensions:'), extensions.enabled()) | ||||
if exts: | if exts: | ||||
rst.append('\n') | rst.append('\n') | ||||
rst.extend(exts) | rst.extend(exts) | ||||
rst.append(_("\nadditional help topics:\n\n")) | rst.append(_("\nadditional help topics:\n\n")) | ||||
topics = [] | topics = [] |