~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.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:
770
770
    """List files modified in working tree."""
771
771
    hidden = True
772
772
    def run(self):
773
 
        import statcache
 
773
        from bzrlib.statcache import update_cache, SC_SHA1
774
774
        b = find_branch('.')
775
775
        inv = b.read_working_inventory()
776
 
        sc = statcache.update_cache(b, inv)
 
776
        sc = update_cache(b, inv)
777
777
        basis = b.basis_tree()
778
778
        basis_inv = basis.inventory
779
779
        
787
787
            if not cacheentry:                 # deleted
788
788
                continue
789
789
            ie = basis_inv[file_id]
790
 
            if cacheentry[statcache.SC_SHA1] != ie.text_sha1:
 
790
            if cacheentry[SC_SHA1] != ie.text_sha1:
791
791
                path = inv.id2path(file_id)
792
792
                print path
793
793
 
1316
1316
    For testing only."""
1317
1317
    hidden = True
1318
1318
    def run(self):
1319
 
        import statcache
 
1319
        from bzrlib.statcache import update_cache
1320
1320
        b = find_branch('.')
1321
 
        statcache.update_cache(b.base, b.read_working_inventory())
 
1321
        update_cache(b.base, b.read_working_inventory())
1322
1322
 
1323
1323
 
1324
1324