~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2006-01-13 07:45:31 UTC
  • mfrom: (1543.1.2 bzr.diff)
  • Revision ID: mbp@sourcefrog.net-20060113074531-d62e6798c2dc5ebc
[merge] Hold locks around diff to prevent thrashing stat-cache (Denys)

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 unlock(self):
 
112
        pass
107
113
        
108
114
        
109
115
class RevisionTree(Tree):
172
178
    def kind(self, file_id):
173
179
        return self._inventory[file_id].kind
174
180
 
 
181
    def lock_read(self):
 
182
        self._branch.lock_read()
 
183
 
 
184
    def unlock(self):
 
185
        self._branch.unlock()
 
186
 
175
187
 
176
188
class EmptyTree(Tree):
177
189
    def __init__(self):