Rev 4756: Fixed as per poolie's review. in file:///home/vila/src/bzr/bugs/353370-notty-no-term-width/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Dec 4 10:36:56 GMT 2009
At file:///home/vila/src/bzr/bugs/353370-notty-no-term-width/
------------------------------------------------------------
revno: 4756
revision-id: v.ladeuil+lp at free.fr-20091204103655-r00e0gz8z3lbni0r
parent: v.ladeuil+lp at free.fr-20091202162142-9iocf4fq8dy5q28k
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 353370-notty-no-term-width
timestamp: Fri 2009-12-04 11:36:55 +0100
message:
Fixed as per poolie's review.
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2009-12-02 16:21:42 +0000
+++ b/NEWS 2009-12-04 10:36:55 +0000
@@ -29,7 +29,8 @@
* The ``BZR_COLUMNS`` envrionment variable can be set to force bzr to
respect a given terminal width. This can be useful when output is
redirected or in obscure cases where the default value is not
- appropriate.
+ appropriate. Pagers can use it to get a better control of the line
+ lengths.
(Vincent Ladeuil)
Bug Fixes
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py 2009-12-02 16:21:42 +0000
+++ b/bzrlib/osutils.py 2009-12-04 10:36:55 +0000
@@ -1373,6 +1373,7 @@
return None
if width <= 0:
+ # Consider invalid values as meaning no width
return None
return width
More information about the bazaar-commits
mailing list