~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-13 02:13:10 UTC
  • Revision ID: mbp@sourcefrog.net-20050413021310-5d8f87711066e6b8
- New 'bzr log --verbose' from Sebastian Cote

Show diffs side-by-side

added added

removed removed

Lines of Context:
697
697
 
698
698
 
699
699
 
700
 
    def write_log(self, show_timezone='original'):
 
700
    def write_log(self, show_timezone='original', verbose=False):
701
701
        """Write out human-readable log of commits to this branch
702
702
 
703
703
        :param utc: If true, show dates in universal time, not local time."""
725
725
                for l in rev.message.split('\n'):
726
726
                    print '  ' + l
727
727
 
 
728
            if verbose == True and precursor != None:
 
729
                print 'changed files:'
 
730
                tree = self.revision_tree(p)
 
731
                prevtree = self.revision_tree(precursor)
 
732
                
 
733
                for file_state, fid, old_name, new_name, kind in \
 
734
                                        diff_trees(prevtree, tree, ):
 
735
                    if file_state == 'A' or file_state == 'M':
 
736
                        show_status(file_state, kind, new_name)
 
737
                    elif file_state == 'D':
 
738
                        show_status(file_state, kind, old_name)
 
739
                    elif file_state == 'R':
 
740
                        show_status(file_state, kind,
 
741
                            old_name + ' => ' + new_name)
 
742
                
728
743
            revno += 1
729
744
            precursor = p
730
745
 
971
986
 
972
987
    s = hexlify(rand_bytes(8))
973
988
    return '-'.join((name, compact_date(time.time()), s))
974
 
 
975