~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transactions.py

  • Committer: Robert Collins
  • Date: 2005-10-07 06:13:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1420.
  • Revision ID: robertc@robertcollins.net-20051007061313-9a835e979434e721
use transactions in the weave store interface, which enables caching for log

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    def register_clean(self, an_object):
64
64
        """Register an_object as being clean."""
65
65
 
 
66
    def register_dirty(self, an_object):
 
67
        """Register an_object as being dirty."""
 
68
        raise errors.ReadOnlyError(
 
69
            "Cannot dirty objects in a read only transaction")
 
70
 
66
71
    def rollback(self):
67
72
        """Let people call this even though nothing has to happen."""
68
73
 
91
96
    def register_clean(self, an_object):
92
97
        """Register an_object as being clean."""
93
98
 
 
99
    def register_dirty(self, an_object):
 
100
        """Register an_object as being dirty."""
 
101
 
94
102
    def rollback(self):
95
103
        """Cannot rollback a pass through transaction."""
96
104
        raise errors.AlreadyCommitted