mercurial/help.py
changeset 33499 0407a51b9d8c
parent 32619 d110fb58424c
child 34912 1e2454b60e59
equal deleted inserted replaced
33498:b7a75b9a3386 33499:0407a51b9d8c
   645         else:
   645         else:
   646             if name in subtopics:
   646             if name in subtopics:
   647                 subtopic = remaining
   647                 subtopic = remaining
   648             else:
   648             else:
   649                 section = remaining
   649                 section = remaining
   650     textwidth = ui.configint('ui', 'textwidth', 78)
   650     textwidth = ui.configint('ui', 'textwidth')
   651     termwidth = ui.termwidth() - 2
   651     termwidth = ui.termwidth() - 2
   652     if textwidth <= 0 or termwidth < textwidth:
   652     if textwidth <= 0 or termwidth < textwidth:
   653         textwidth = termwidth
   653         textwidth = termwidth
   654     text = help_(ui, commands, name,
   654     text = help_(ui, commands, name,
   655                  subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts)
   655                  subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts)