comparison mercurial/commands.py @ 26159:f3b467aca485

commands: support hg help scripting.HGPLAIN keywords are lowercased within help/minirst...
author timeless@mozdev.org
date Wed, 02 Sep 2015 23:50:45 -0400
parents dceaef70e410
children 29d29a82263f
comparison
equal deleted inserted replaced
26158:342ab95a1f4b 26159:f3b467aca485
3969 keep.append(sys.platform.lower()) 3969 keep.append(sys.platform.lower())
3970 3970
3971 section = None 3971 section = None
3972 if name and '.' in name: 3972 if name and '.' in name:
3973 name, section = name.split('.', 1) 3973 name, section = name.split('.', 1)
3974 section = section.lower()
3974 3975
3975 text = help.help_(ui, name, **opts) 3976 text = help.help_(ui, name, **opts)
3976 3977
3977 formatted, pruned = minirst.format(text, textwidth, keep=keep, 3978 formatted, pruned = minirst.format(text, textwidth, keep=keep,
3978 section=section) 3979 section=section)