~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to patches.py

  • Committer: Aaron Bentley
  • Date: 2005-08-17 17:38:49 UTC
  • mto: (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: abentley@panoramicfeedback.com-20050817173849-67187f850a36d634
Updated patch to match bzrtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        self.hunks = []
257
257
 
258
258
    def __str__(self):
259
 
        ret =  "--- %s\n+++ %s\n" % (self.oldname, self.newname) 
 
259
        ret = self.get_header() 
260
260
        ret += "".join([str(h) for h in self.hunks])
261
261
        return ret
262
262
 
 
263
    def get_header(self):
 
264
        return "--- %s\n+++ %s\n" % (self.oldname, self.newname)
 
265
 
263
266
    def stats_str(self):
264
267
        """Return a string of patch statistics"""
265
268
        removes = 0