mercurial/commands.py
changeset 29070 29a7d591ff42
parent 29061 fc88a942fe8d
child 29086 fe50341de1ff
equal deleted inserted replaced
29069:e2a1648a6ce7 29070:29a7d591ff42
  4565     topic.
  4565     topic.
  4566 
  4566 
  4567     Returns 0 if successful.
  4567     Returns 0 if successful.
  4568     """
  4568     """
  4569 
  4569 
  4570     textwidth = min(ui.termwidth(), 80) - 2
  4570     textwidth = ui.configint('ui', 'textwidth', 78)
       
  4571     termwidth = ui.termwidth() - 2
       
  4572     if textwidth <= 0 or termwidth < textwidth:
       
  4573         textwidth = termwidth
  4571 
  4574 
  4572     keep = opts.get('system') or []
  4575     keep = opts.get('system') or []
  4573     if len(keep) == 0:
  4576     if len(keep) == 0:
  4574         if sys.platform.startswith('win'):
  4577         if sys.platform.startswith('win'):
  4575             keep.append('windows')
  4578             keep.append('windows')