Garbage in "bzr commit" output
Aaron Bentley
aaron.bentley at utoronto.ca
Sat Jul 8 07:14:52 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> Aaron Bentley wrote:
>>> The garbage is just a
>>> symptom of the fact that tty progress bars are still active.
>
> Well, not just that. Because right now any note/info/etc will call out
> to the ui layer, which will call progress.clear()
> So I think this is necessary anyway, to prevent 10 note() calls in a row
> from falsely clearing the terminal 10 times.
If the active progress bar isn't a TTYProgressBar, your change has no
effect, so if tty progress bars are not active, it can't be necessary.
I'm in favour of it going in. It reduces the bandwidth used when
running bzr in a remote shell.
> That said, which do you prefer, and ENV variable, or a global command to
> disable progress bars?
I prefer an env variable, because it applies to child processes (e.g.
running bzr in a commit hook or as part of a script).
> 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.
Oh, I thought you posted something in the past week.
> Anyway, what do you think of the patch? Wait until we can globally
> disable it first? If we can decide which way we want to go to disable
> it, I'm fine with implementing it.
Part 1 looks fine. For 2, I don't think we need to do it in show_eta,
since that can't increase the # of last_updates there. We just need it
in throttle.
I assume switching from deque to list was an efficiency thing?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEr01b0F+nu1YWqI0RAj+vAJsHUTM/3HUfoik6u481O0r2NcEQZgCaAkJM
7t6LJIiyfINOYjdURwRgwVA=
=/dlr
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list