~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2005-10-04 03:35:31 UTC
  • mfrom: (1393.1.30)
  • Revision ID: robertc@robertcollins.net-20051004033531-f057603b470ca4a2
merge from mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
796
796
            tree = b.working_tree()
797
797
        else:
798
798
            tree = b.revision_tree(revision.in_history(b).rev_id)
799
 
 
800
 
        for fp, fc, kind, fid in tree.list_files():
 
799
        for fp, fc, kind, fid, entry in tree.list_files():
801
800
            if verbose:
802
 
                if kind == 'directory':
803
 
                    kindch = '/'
804
 
                elif kind == 'file':
805
 
                    kindch = ''
806
 
                else:
807
 
                    kindch = '???'
808
 
 
 
801
                kindch = entry.kind_character()
809
802
                print '%-8s %s%s' % (fc, fp, kindch)
810
803
            else:
811
804
                print fp
885
878
    See also: bzr ignore"""
886
879
    def run(self):
887
880
        tree = Branch.open_containing('.').working_tree()
888
 
        for path, file_class, kind, file_id in tree.list_files():
 
881
        for path, file_class, kind, file_id, entry in tree.list_files():
889
882
            if file_class != 'I':
890
883
                continue
891
884
            ## XXX: Slightly inefficient since this was already calculated