~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.py

  • Committer: Arnaud Jeansen
  • Date: 2010-03-19 23:17:08 UTC
  • mto: This revision was merged to the branch mainline in revision 5126.
  • Revision ID: arnaud.jeansen@gmail.com-20100319231708-zjgmbkw7eheb5roz
Port get_changes_as_text to the report callbacks

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        return False
109
109
 
110
110
    def get_changes_as_text(self, show_ids=False, show_unchanged=False,
111
 
             short_status=False):
 
111
                            short_status=False):
112
112
        import StringIO
113
113
        output = StringIO.StringIO()
114
 
        self.show(output, show_ids, show_unchanged, short_status)
 
114
        if short_status:
 
115
            report_short(output, self, show_ids, show_unchanged)
 
116
        else:
 
117
            report_long(output, self, show_ids, show_unchanged)
115
118
        return output.getvalue()
116
119
 
117
120