~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-11 04:18:51 UTC
  • Revision ID: mbp@sourcefrog.net-20050511041851-a0a7480c958ef86c
- new testing command compare-trees
- change operation of TreeDelta object a bit
  to specify which renamed files also have modified text
- new TreeDelta.show() factored out
- new compare_trees similar to compare_inventories
  but handling WorkingTrees that don't have a SHA-1 
  in the inventory but can get it from cache
- new Inventory.get_file_kind

Show diffs side-by-side

added added

removed removed

Lines of Context:
858
858
        statcache.update_cache(b.base, b.read_working_inventory())
859
859
 
860
860
 
 
861
class cmd_compare_trees(Command):
 
862
    """Show quick calculation of status."""
 
863
    hidden = True
 
864
    def run(self):
 
865
        import diff
 
866
        b = Branch('.')
 
867
        delta = diff.compare_trees(b.basis_tree(), b.working_tree())
 
868
        delta.show(sys.stdout, False)
 
869
 
 
870
 
861
871
######################################################################
862
872
# main routine
863
873