~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-07-22 18:49:46 UTC
  • Revision ID: mbp@sourcefrog.net-20050722184946-4bd334f8c0d75957
- separate out code that just scans the hash cache to find files that are possibly
  changed; don't actually re-read them unless the content has changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1254
1254
 
1255
1255
 
1256
1256
 
1257
 
class cmd_update_hashes(Command):
 
1257
class cmd_scan_cache(Command):
1258
1258
    hidden = True
1259
1259
    def run(self):
1260
1260
        from bzrlib.hashcache import HashCache
1262
1262
 
1263
1263
        c = HashCache('.')
1264
1264
        c.read()
1265
 
        c.refresh_all()
 
1265
        c.scan()
1266
1266
            
1267
1267
        print '%6d stats' % c.stat_count
1268
1268
        print '%6d in hashcache' % len(c._cache)
1269
 
        print '%6d files gone' % c.gone_count
1270
 
        print '%6d hashes updated' % c.miss_count
 
1269
        print '%6d files removed from cache' % c.removed_count
 
1270
        print '%6d hashes updated' % c.update_count
1271
1271
        print '%6d files changed too recently to cache' % c.danger_count
1272
1272
 
1273
1273
        if c.needs_write: