Merge lp://staging/~nmb/bzr/675652-bzr-columns-0 into lp://staging/bzr

Proposed by Neil Martinsen-Burrell
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: no longer in the source branch.
Merged at revision: 5598
Proposed branch: lp://staging/~nmb/bzr/675652-bzr-columns-0
Merge into: lp://staging/bzr
Diff against target: 65 lines (+19/-2)
4 files modified
bzrlib/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)
To merge this branch: bzr merge lp://staging/~nmb/bzr/675652-bzr-columns-0
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Martin Pool Approve
Review via email: mp+45660@code.staging.launchpad.net

Commit message

Accept 0 to mean no limit for BZR_COLUMNS

Description of the change

This change fixes bug 675652 by allowing the environment variable BZR_COLUMNS to be set to 0 to indicate no preference for terminal width.

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

That makes sense to me. I guess you also checked it does fix the
issue interactively?

  vote approve

Martin

review: Approve
Revision history for this message
Neil Martinsen-Burrell (nmb) wrote :

On Jan 10, 2011, at 0:01, Martin Pool <email address hidden> wrote:

> Review: Approve
> That makes sense to me. I guess you also checked it does fix the
> issue interactively?

It works correctly interactively, that is, it fixes the traceback in the bug and for log and stat it provides unlimited line lengths. However, 'bzr help' uses a default width of 80 characters when osutils.terminal_width() returns None, which doesn't seem to be what the bug reporter wants. However, I think that is a separate UI bug from fixing the traceback.

Revision history for this message
Vincent Ladeuil (vila) wrote :

IIRC the help 80 default width is not under our direct control anyway and will probably require a more invasive change.

review: Approve
Revision history for this message
Vincent Ladeuil (vila) wrote :

sent to pqm by email

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.