/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Martin Pool
  • Date: 2005-07-06 05:32:32 UTC
  • Revision ID: mbp@sourcefrog.net-20050706053232-3cc703228805ed79
- clean up imports of statcache

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import bzrlib.tree
21
21
from errors import BzrCheckError
22
22
from trace import mutter
23
 
import statcache
24
23
 
25
24
class WorkingTree(bzrlib.tree.Tree):
26
25
    """Working copy tree.
92
91
    
93
92
 
94
93
    def _update_statcache(self):
95
 
        import statcache
96
94
        if not self._statcache:
97
 
            self._statcache = statcache.update_cache(self.basedir, self.inventory)
 
95
            from bzrlib.statcache import update_cache
 
96
            self._statcache = update_cache(self.basedir, self.inventory)
98
97
 
99
98
    def get_file_size(self, file_id):
100
99
        import os, stat
102
101
 
103
102
 
104
103
    def get_file_sha1(self, file_id):
105
 
        return self._statcache[file_id][statcache.SC_SHA1]
 
104
        from bzrlib.statcache import SC_SHA1
 
105
        return self._statcache[file_id][SC_SHA1]
106
106
 
107
107
 
108
108
    def file_class(self, filename):