]> arthur.barton.de Git - bup.git/commit
Add a new 'bup newliner' that fixes progress message whitespace.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 28 Feb 2010 20:00:50 +0000 (15:00 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 28 Feb 2010 22:49:06 +0000 (17:49 -0500)
commit073b383882e73904ae04179e69a68419d8d57199
treecee76ac5324b7957ffaa074992c15eef796923af
parent567f487fcfeeb83399dbce92c37cf3b56ad6abfc
Add a new 'bup newliner' that fixes progress message whitespace.

If we have multiple processes producing status messages to stderr and/or
stdout, and some of the lines ended in \r (ie. a progress message that was
supposed to be overwritten later) they would sometimes stomp on each other
and leave ugly bits lying around.

Now bup.py automatically pipes stdout/stderr to the new 'bup newliner'
command to fix this, but only if they were previously pointing at a tty.
Thus, if you redirect stdout to a file, nothing weird will happen, but if
you don't, stdout and stderr won't conflict with each other.

Anyway, the output is prettier now.  Trust me on this.
Makefile
bup.py
cmd-index.py
cmd-newliner.py [new file with mode: 0755]
cmd-save.py
helpers.py