~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-28 03:26:06 UTC
  • mfrom: (2749.3.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20070828032606-yp46hkvcaan2ew9b
Add CommitBuilder.abort().

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
                # Add revision data to the local branch
317
317
                self.rev_id = self.builder.commit(self.message)
318
318
            except:
319
 
                # perhaps this should be done by the CommitBuilder ?
320
 
                self.work_tree.branch.repository.abort_write_group()
 
319
                self.builder.abort()
321
320
                raise
322
321
 
323
322
            # Upload revision data to the master.