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

  • Committer: Jelmer Vernooij
  • Date: 2018-03-08 01:08:54 UTC
  • mto: (0.200.1831 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180308010854-hsj46y62wyzfdgjh
Improve transaction and write group handling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
        return self._new_revision_id
234
234
 
235
235
    def abort(self):
236
 
        self.repository.abort_write_group()
 
236
        if self.repository.is_in_write_group():
 
237
            self.repository.abort_write_group()
237
238
 
238
239
    def revision_tree(self):
239
240
        return self.repository.revision_tree(self._new_revision_id)