[PATCH 0 of 1] patchbomb: add progress support

Yuya Nishihara yuya at tcha.org
Sun Sep 12 10:20:58 CDT 2010


Martin Geisler wrote:
> Yuya Nishihara <yuya at tcha.org> writes:
> 
> > It adds progress bar to patchbomb, shown during sending emails
> > or writing mbox files.
> >
> > Command output example:
> > Sending [PATCH 0 of 5] test ...
> > Sending [PATCH 1 of 5] Create a standard "hello, world" program ...
> > Sending [PATCH 2 of 5] Create a makefile ...
> > sending [===============>                                       ] 2/6
> 
> That is cool! I tried to update test-patchbomb to make it output the
> progress bar, but I couldn't figure it out. I added
> 
>   $ echo 'progress=' >> $HGRCPATH
>   $ echo "[progress]" >> $HGRCPATH
>   $ echo "assume-tty=1" >> $HGRCPATH
>   $ echo "delay=0" >> $HGRCPATH
>   $ echo "refresh=0" >> $HGRCPATH
> 
> before
> 
>   $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip
> 
> but it didn't give me a progress bar, instead it gave me lots of changes
> like this:
> 
> ERROR: /home/mg/src/mercurial-crew/tests/test-patchbomb.t output changed
> --- /home/mg/src/mercurial-crew/tests/test-patchbomb.t 
> +++ /home/mg/src/mercurial-crew/tests/test-patchbomb.t.err 
> @@ -151,7 +151,7 @@
>    
>  
>    $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip
> -  This patch series consists of 2 patches.
> This patch series consists of 2 patches.                                        
> 
> Can you take a look at it?

Ah, that's because xterm or something interprets control characters of
diff output. It contains many '\r's.
Maybe we need the asciify patch proposed by Mads.

Yuya,


More information about the Mercurial-devel mailing list