/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: 2007-08-08 00:28:10 UTC
  • mfrom: (2617.6.9 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070808002810-703n3mr6b6hwataj
(robertc) Introduce write_groups for repositories, allowing repositories with the physical ability to do transactional data insertion to have that modelled within bzr. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        try:
109
109
            self.to_repository.lock_write()
110
110
            try:
111
 
                self.__fetch()
 
111
                self.to_repository.start_write_group()
 
112
                try:
 
113
                    self.__fetch()
 
114
                except:
 
115
                    self.to_repository.abort_write_group()
 
116
                    raise
 
117
                else:
 
118
                    self.to_repository.commit_write_group()
112
119
            finally:
113
120
                if self.nested_pb is not None:
114
121
                    self.nested_pb.finished()