~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transactions.py

 * bzr add now lists how many files were ignored per glob.  add --verbose
   lists the specific files.  (Aaron Bentley)

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()
 
54
        raise errors.CommitNotPossible('In a read only transaction')
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.ReadOnlyObjectDirtiedError(an_object)
 
85
        raise errors.ReadOnlyError(
 
86
            "Cannot dirty objects in a read only transaction")
86
87
 
87
88
    def rollback(self):
88
89
        """Let people call this even though nothing has to happen."""