comparison mercurial/help.py @ 32143:964c6be36590

py3: make sure opts are passed and used correctly in help command opts are converted back to bytes in help.help_() where they are used. Before that it's ensured that we have a bytes value for keep variable.
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 28 Apr 2017 00:49:30 +0530
parents d7b698ae153b
children bd872f64a8ba
comparison
equal deleted inserted replaced
32142:d90ffee93df6 32143:964c6be36590
21 error, 21 error,
22 extensions, 22 extensions,
23 filemerge, 23 filemerge,
24 fileset, 24 fileset,
25 minirst, 25 minirst,
26 pycompat,
26 revset, 27 revset,
27 templatefilters, 28 templatefilters,
28 templatekw, 29 templatekw,
29 templater, 30 templater,
30 util, 31 util,
302 Generate the help for 'name' as unformatted restructured text. If 303 Generate the help for 'name' as unformatted restructured text. If
303 'name' is None, describe the commands available. 304 'name' is None, describe the commands available.
304 ''' 305 '''
305 306
306 from . import commands # avoid cycle 307 from . import commands # avoid cycle
308 opts = pycompat.byteskwargs(opts)
307 309
308 def helpcmd(name, subtopic=None): 310 def helpcmd(name, subtopic=None):
309 try: 311 try:
310 aliases, entry = cmdutil.findcmd(name, commands.table, 312 aliases, entry = cmdutil.findcmd(name, commands.table,
311 strict=unknowncmd) 313 strict=unknowncmd)