~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transactions.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-22 07:59:56 UTC
  • mfrom: (1553.5.33 bzr.mbp.locks)
  • Revision ID: pqm@pqm.ubuntu.com-20060222075956-fb281c427e571da6
add LockDir and related fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
    def commit(self):
53
53
        """ReadOnlyTransactions cannot commit."""
54
 
        raise errors.CommitNotPossible('In a read only transaction')
 
54
        raise errors.CommitNotPossible()
55
55
 
56
56
    def finish(self):
57
57
        """Clean up this transaction
82
82
 
83
83
    def register_dirty(self, an_object):
84
84
        """Register an_object as being dirty."""
85
 
        raise errors.ReadOnlyError(
86
 
            "Cannot dirty objects in a read only transaction")
 
85
        raise errors.ReadOnlyObjectDirtiedError(an_object)
87
86
 
88
87
    def rollback(self):
89
88
        """Let people call this even though nothing has to happen."""