BZR_COLUMNS=0 ought to disable wrapping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Neil Martinsen-Burrell |
Bug Description
Instead of disabling wrapping (which is the typical use for limits of 0), setting BZR_COLUMNS=0 in the environment does something like this:
E:\home>sh -c "BZR_COLUMNS=0 bzr help commands | grep bzrtools"
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\help.pyo", line 51, in help
File "bzrlib\
File "bzrlib\
File "bzrlib\help.pyo", line 102, in _help_commands_
File "textwrap.pyo", line 346, in wrap
File "textwrap.pyo", line 321, in wrap
File "textwrap.pyo", line 250, in _wrap_chunks
ValueError: invalid width -1 (must be > 0)
bzr 2.2.1 on python 2.6.4 (Windows-
arguments: ['e:\\Tools\
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools E:\Tools\
colo E:\Tools\
explorer E:\Tools\
fastimport E:\Tools\
launchpad E:\Tools\
loom E:\Tools\
netrc_
news_merge E:\Tools\
pipeline E:\Tools\
qbzr E:\Tools\
rewrite E:\Tools\
svn E:\Tools\
upload E:\Tools\
xmloutput E:\Tools\
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
P.S. if there's a better way to look for a listing of commands provided by any given plugin, it might be a good idea to make it easier to find.
Related branches
- Vincent Ladeuil: Approve
- Martin Pool: Approve
-
Diff: 65 lines (+19/-2)4 files modifiedbzrlib/osutils.py (+8/-2)
bzrlib/tests/blackbox/test_help.py (+4/-0)
bzrlib/tests/test_osutils.py (+4/-0)
doc/en/release-notes/bzr-2.3.txt (+3/-0)
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: easy ui |
Changed in bzr: | |
assignee: | nobody → Neil Martinsen-Burrell (nmb) |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.3b5 |
Changed in bzr: | |
status: | In Progress → Fix Released |