~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/statcache.py

  • Committer: Martin Pool
  • Date: 2005-05-10 06:21:52 UTC
  • Revision ID: mbp@sourcefrog.net-20050510062152-41db56a62921b23a
- Always call it 'statcache' not 'work cache'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
def _write_cache(branch, entry_iter):
76
76
    from atomicfile import AtomicFile
77
77
    
78
 
    outf = AtomicFile(branch.controlfilename('work-cache'), 'wb', 'utf-8')
 
78
    outf = AtomicFile(branch.controlfilename('stat-cache'), 'wb', 'utf-8')
79
79
    try:
80
80
        for entry in entry_iter:
81
81
            outf.write(entry[0] + ' ' + entry[1] + ' ')
92
92
    cache = {}
93
93
 
94
94
    try:
95
 
        cachefile = branch.controlfile('work-cache', 'r')
 
95
        cachefile = branch.controlfile('stat-cache', 'r')
96
96
    except IOError:
97
97
        return cache
98
98
    
163
163
            cache[file_id] = cacheentry
164
164
            dirty += 1
165
165
 
166
 
    mutter('work cache: read %d files, %d changed, %d in cache'
 
166
    mutter('statcache: read %d files, %d changed, %d in cache'
167
167
           % (hardcheck, dirty, len(cache)))
168
168
        
169
169
    if dirty: