Merge lp:~jameinel/bzr/2.3.1-track-bytes into lp:bzr/2.3
Proposed by
John A Meinel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John A Meinel | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5620 | ||||
Proposed branch: | lp:~jameinel/bzr/2.3.1-track-bytes | ||||
Merge into: | lp:bzr/2.3 | ||||
Diff against target: |
92 lines (+33/-9) 3 files modified
bzrlib/commands.py (+5/-4) bzrlib/tests/blackbox/test_debug.py (+24/-5) doc/en/release-notes/bzr-2.3.txt (+4/-0) |
||||
To merge this branch: | bzr merge lp:~jameinel/bzr/2.3.1-track-bytes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Review via email: mp+48675@code.launchpad.net |
Commit message
Fix bug #713258, restore logging of bytes transferred for a given command.
Description of the change
This restores the logging of bytes transferred for a given command, and adds a test that it is shown when using '-Dbytes'.
I'm not positive that 'test_debug' is the best place for it, but it seemed reasonable to test that a -D flag has an effect.
I suppose the only other bit I *could* test, is that it doesn't report 0 bytes, but that is a bit tricky, since you could search for [^0]kB, but then if it was exactly 10kB the test would fail again. (Right now it is 4kB in my testing.)
I'm proposing this for bzr/2.3 and then we'll merge up to bzr core from there.
To post a comment you must log in.
Thanks for fixing that, and for adding a test.
I am a bit reluctant to make the test use a subprocess though. It may not show up much for this particular test, but if in general we start running tests in subprocesses things will eventually get very slow, especially on Windows. I thought we already had, or could easily add, an option to run things with a more realistic ui factory.
It seems like the null progress view could easily at least record the activity, even if it doesn't display it.
So 'needs fixing' but I'm open to negotiation.