~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-11 02:44:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050411024445-a2d4fa7e39309d2300533a6a
- Experiments in inventory performance

Show diffs side-by-side

added added

removed removed

Lines of Context:
488
488
    import bzrlib.newinventory
489
489
    inv = Branch('.').basis_tree().inventory
490
490
    bzrlib.newinventory.write_slacker_inventory(inv, sys.stdout)
491
 
                
 
491
 
 
492
 
 
493
 
 
494
def cmd_dump_text_inventory():
 
495
    import bzrlib.textinv
 
496
    inv = Branch('.').basis_tree().inventory
 
497
    bzrlib.textinv.write_text_inventory(inv, sys.stdout)
 
498
 
 
499
 
 
500
def cmd_load_text_inventory():
 
501
    import bzrlib.textinv
 
502
    inv = bzrlib.textinv.read_text_inventory(sys.stdin)
 
503
    print 'loaded %d entries' % len(inv)
 
504
    
492
505
    
493
506
 
494
507
def cmd_root(filename=None):
1016
1029
        ## traceback.print_exc(None, sys.stderr)
1017
1030
        return 1
1018
1031
 
1019
 
    # TODO: Maybe nicer handling of IOError?
 
1032
    ## TODO: Trap AssertionError
 
1033
 
 
1034
    # TODO: Maybe nicer handling of IOError especially for broken pipe.
1020
1035
 
1021
1036
 
1022
1037