/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/testui.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""
19
19
 
20
20
 
21
 
from .. import (
 
21
from bzrlib import (
22
22
    progress,
23
23
    ui,
24
24
    )
41
41
    def finished(self):
42
42
        self.depth -= 1
43
43
 
44
 
    def __enter__(self):
45
 
        return self
46
 
 
47
 
    def __exit__(self, exc_type, exc_val, exc_tb):
48
 
        self.finished()
49
 
        return False
50
 
 
51
44
    def update(self, message, count=None, total=None):
52
45
        if self.depth == 1:
53
46
            self._calls.append(("update", count, total, message))