/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/fetch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-04-27 07:02:04 UTC
  • mfrom: (3381.1.4 fetch-locking)
  • Revision ID: pqm@pqm.ubuntu.com-20080427070204-4t5flfqnnmr6bmiw
Remove locking from generators

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
                else:
113
113
                    self.to_repository.commit_write_group()
114
114
            finally:
115
 
                if self.nested_pb is not None:
116
 
                    self.nested_pb.finished()
117
 
                self.to_repository.unlock()
 
115
                try:
 
116
                    if self.nested_pb is not None:
 
117
                        self.nested_pb.finished()
 
118
                finally:
 
119
                    self.to_repository.unlock()
118
120
        finally:
119
121
            self.from_repository.unlock()
120
122