Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help.py @ 32192: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 |
line wrap: on
line diff
--- a/mercurial/help.py Wed May 03 15:25:06 2017 +0530 +++ b/mercurial/help.py Fri Apr 28 00:49:30 2017 +0530 @@ -23,6 +23,7 @@ filemerge, fileset, minirst, + pycompat, revset, templatefilters, templatekw, @@ -304,6 +305,7 @@ ''' from . import commands # avoid cycle + opts = pycompat.byteskwargs(opts) def helpcmd(name, subtopic=None): try: