~benoit.pierre/+junk/bzr-rewrite_interactive

« back to all changes in this revision

Viewing changes to rewrite.py

  • Committer: Benoît Pierre
  • Date: 2011-06-30 15:18:03 UTC
  • Revision ID: benoit.pierre@gmail.com-20110630151803-hk5yfjn7pqph2hw0
Fix exception when get_log is called (missing "show" method for TreeDelta).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib.branch import Branch
20
20
from bzrlib.commands import get_cmd_object
21
 
from bzrlib.delta import TreeDelta
 
21
from bzrlib.delta import TreeDelta, report_delta
22
22
from bzrlib.diff import show_diff_trees
23
23
from bzrlib.errors import (BzrError, ConflictsInTree,
24
24
                           PointlessMerge, UncommittedChanges)
84
84
 
85
85
    def get_log(self, indent=False):
86
86
        log = StringIO()
87
 
        self.delta.show(log, short_status=True)
 
87
        report_delta(log, self.delta, short_status=True)
88
88
        log = log.getvalue()[0:-1]
89
89
        if indent:
90
90
            return '\n  '.join(log.split('\n'))