~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to diffstat.py

  • Committer: Michael Ellerman
  • Date: 2005-12-12 17:33:26 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 334.
  • Revision ID: michael@ellerman.id.au-20051212173326-44a01d94f544228a
Merge Dafydd Harries' fix for long filenames in diffstat

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        graphwidth = width - countwidth - self.maxname
68
68
        factor = 1
69
69
 
 
70
        # The graph width can be <= 0 if there is a modified file with a
 
71
        # filename longer than 'width'. Use a minimum of 10.
 
72
        if graphwidth < 10:
 
73
            graphwidth = 10
 
74
 
70
75
        while (self.maxtotal / factor) > graphwidth:
71
76
            factor += 1
72
77