[MERGE] Re: Garbage in "bzr commit" output

John Arbash Meinel john at arbash-meinel.com
Tue Jul 11 00:42:47 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthieu Moy wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
> 
>> That said, which do you prefer, and ENV variable, or a global command to
>> disable progress bars?
> 
> ENV variable would be fine to me.
> 
>> Oh, and I believe I wrote a patch a long time ago, so that we at least
>> switch to DotsProgressBar if the output isn't a tty.
> 
> There is a problem with this :
> 
> $ bzr commit -m foo >&! /tmp/commit-result.txt
> 
> gives me that garbage in /tmp/commit-result.txt.
> 

Well, why are you doing >&! instead of just >!. I'm not sure what the
use case is for that...

That said, I did go ahead and implement BZR_PROGRESS_BAR, and env
variable that lets you set the default type of progress bar. One
possibility is 'none' which disables them.

Its based on my other progress work (to not clear the terminal), so I'm
just posting the diff. But the branch is available from:

http://bzr.arbash-meinel.com/branches/bzr/features/cleanup-progress

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsuX2JdeBCYSNAAMRAknxAKC1FkZohkvjiUk08dFQXqORz6TF3QCglSbp
rPe4Syb636YIFzQd3N8qIck=
=DoG0
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup-progress2.diff
Type: text/x-patch
Size: 9248 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060710/86dd6403/attachment.bin 


More information about the bazaar mailing list