/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 breezy/tests/testui.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
44
51
    def update(self, message, count=None, total=None):
45
52
        if self.depth == 1:
46
53
            self._calls.append(("update", count, total, message))