~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:37:48 UTC
  • mto: (1185.50.49 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1549.
  • Revision ID: mbp@sourcefrog.net-20060113073748-d6893fbd5454d5a4
[cherrypick] Hold locks around entire diff operations to avoid thrashing
hashcache.  (from 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):