~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Denys Duchier
  • Date: 2006-01-12 14:04:07 UTC
  • mto: This revision was merged to the branch mainline in revision 1545.
  • Revision ID: denys.duchier@mozart-oz.org-20060112140407-8fcdee0baca6d707
lock operations for trees - use them for diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        """Print file with id `file_id` to stdout."""
105
105
        import sys
106
106
        sys.stdout.write(self.get_file_text(file_id))
 
107
 
 
108
    def lock_read(self):
 
109
        pass
 
110
 
 
111
    def lock_write(self):
 
112
        pass
 
113
 
 
114
    def unlock(self):
 
115
        pass
107
116
        
108
117
        
109
118
class RevisionTree(Tree):
172
181
    def kind(self, file_id):
173
182
        return self._inventory[file_id].kind
174
183
 
 
184
    def lock_read(self):
 
185
        self._branch.lock_read()
 
186
 
 
187
    def lock_write(self):
 
188
        self._branch.lock_write()
 
189
 
 
190
    def unlock(self):
 
191
        self._branch.unlock()
 
192
 
175
193
 
176
194
class EmptyTree(Tree):
177
195
    def __init__(self):