##// END OF EJS Templates
py3: make sure opts are passed and used correctly in help command...
Pulkit Goyal -
r32143:964c6be3 default
parent child Browse files
Show More
@@ -2759,7 +2759,7 b' def help_(ui, name=None, **opts):'
2759 Returns 0 if successful.
2759 Returns 0 if successful.
2760 """
2760 """
2761
2761
2762 keep = opts.get('system') or []
2762 keep = opts.get(r'system') or []
2763 if len(keep) == 0:
2763 if len(keep) == 0:
2764 if pycompat.sysplatform.startswith('win'):
2764 if pycompat.sysplatform.startswith('win'):
2765 keep.append('windows')
2765 keep.append('windows')
@@ -23,6 +23,7 b' from . import ('
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,
@@ -304,6 +305,7 b' def help_(ui, name, unknowncmd=False, fu'
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:
General Comments 0
You need to be logged in to leave comments. Login now