~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to diffstat.py

  • Committer: Michael Ellerman
  • Date: 2005-11-28 08:56:48 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-20051128085648-3b805ab0af53fdd1
The UserInteractor refactoring changed the order in which we print options,
fix it so we print them in the order we get them.

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
 
 
71
66
        while (self.maxtotal / factor) > graphwidth:
72
67
            factor += 1
73
68
 
82
77
            s += '-' * max(fstat.removes / factor, 1)
83
78
            s += '\n'
84
79
 
85
 
        s += ' %d files changed, %d insertions(+), %d deletions(-)' % \
 
80
        s += ' %d files changes, %d insertions(+), %d deletions(-)' % \
86
81
                (len(self.stats), self.total_adds, self.total_removes)
87
82
        return s
88
83