~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-07-20 17:31:25 UTC
  • Revision ID: mbp@sourcefrog.net-20050720173125-e5974e73bd5fc31e
- add back update-hashes command for testing/profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
1254
1254
 
1255
1255
 
1256
1256
 
 
1257
class cmd_update_hashes(Command):
 
1258
    hidden = True
 
1259
    def run(self):
 
1260
        from bzrlib.hashcache import HashCache
 
1261
 
 
1262
        c = HashCache('.')
 
1263
        c.read()
 
1264
        for name in c._cache:
 
1265
            c.get_sha1(name)
 
1266
            
 
1267
        
 
1268
 
 
1269
 
 
1270
 
1257
1271
class cmd_upgrade(Command):
1258
1272
    """Upgrade branch storage to current format.
1259
1273