~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to diffstat.py

  • Committer: Aaron Bentley
  • Date: 2005-12-12 16:59:40 UTC
  • mfrom: (296.1.2 bzrtools)
  • Revision ID: abentley@panoramicfeedback.com-20051212165940-f1e2875b71f848ab
Fix for extremely long filenames in shelve

Show diffs side-by-side

added added

removed removed

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