~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-30 22:27:17 UTC
  • Revision ID: mbp@sourcefrog.net-20050330222717-027b5837127b938d
experiment with new nested inventory file format
not used by default yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
 
371
371
 
372
372
def cmd_load_inventory():
373
 
    inv = Branch('.').read_working_inventory()
374
 
                
375
 
    
376
 
 
 
373
    inv = Branch('.').basis_tree().inventory
 
374
 
 
375
 
 
376
 
 
377
def cmd_dump_new_inventory():
 
378
    import bzrlib.newinventory
 
379
    inv = Branch('.').basis_tree().inventory
 
380
    bzrlib.newinventory.write_inventory(inv, sys.stdout)
 
381
                
 
382
    
 
383
def cmd_dump_slacker_inventory():
 
384
    import bzrlib.newinventory
 
385
    inv = Branch('.').basis_tree().inventory
 
386
    bzrlib.newinventory.write_slacker_inventory(inv, sys.stdout)
 
387
                
 
388
    
377
389
 
378
390
def cmd_root(filename=None):
379
391
    """Print the branch root."""
838
850
        import hotshot.stats
839
851
        stats = hotshot.stats.load('.bzr.profile')
840
852
        #stats.strip_dirs()
841
 
        stats.sort_stats('cumulative', 'calls')
 
853
        stats.sort_stats('time')
842
854
        stats.print_stats(20)
843
855
    else:
844
856
        return cmd_handler(**cmdargs) or 0