`bzr unshelve --preview|less` leaves progress indicator junk

Bug #677376 reported by Alexander Belchenko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

bzr 2.2.1 @ Windows XP

C:\work\MyCode\CITO\AVR>bzr unshelve --dry-run
Using changes with id "2".
Message: blah-blah-blah
 M ext_host.c
 M ext_uart.c

C:\work\MyCode\CITO\AVR>bzr unshelve --preview | less
Using changes with id "2".
Message: blah-blah-blah
 M ext_host.cass 1/10 0/40
 M ext_uart.c

As you can see there is junk "ass 1/10 0/40" in the stderr output of the second command.

Tags: ui
Revision history for this message
Alexander Belchenko (bialix) wrote :

IIUC this junk left after progress bar.

tags: added: ui
Revision history for this message
Vincent Ladeuil (vila) wrote :

Which bzr version are you using ?

bzr should more polite, 'ass' is not a nice thing to left on the screen :)

Changed in bzr:
status: New → Incomplete
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 677376] Re: `bzr unshelve --preview|less` leaves progress indicator junk

Vincent Ladeuil пишет:
> Which bzr version are you using ?

I've specified it at the beginning of the bug report:
bzr 2.2.1 @ Windows XP

> bzr should more polite, 'ass' is not a nice thing to left on the screen
> :)

yep :-)

--
All the dude wanted was his rug back

Revision history for this message
Vincent Ladeuil (vila) wrote :

Doh ! 2.2.1 of course, sorry :)

Changed in bzr:
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
Ross Lagerwall (rosslagerwall) wrote :

I don't think it is possible to differentiate between this case and the case of:
bzr unshelve --preview > test.diff
where you may want to see the progress bar.
Use the --quiet option to stop the progress bar from appearing or BZR_PROGRESS_BAR=none.

Revision history for this message
Martin Pool (mbp) wrote :

I'm not planning to work on it soon, but for progress bars, I do
wonder if we should give up on trying to keep stdout and stderr in
sync, and just send the bar to stdout only when it is a tty and not
being used for anything else. So, in this case, there would be just
no progress.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.