~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
all the changes since the previous revision that touched hello.c.
50
50
"""
51
51
 
52
 
# TODO: option to show delta summaries for merged-in revisions
53
 
 
54
52
from itertools import izip
55
53
import re
56
54
 
796
794
    lf.show(revno, rev, delta)
797
795
 
798
796
 
799
 
def show_changed_revisions(branch, old_rh, new_rh, to_file=None, log_format='long'):
 
797
def show_changed_revisions(branch, old_rh, new_rh, to_file=None,
 
798
                           log_format='long'):
800
799
    """Show the change in revision history comparing the old revision history to the new one.
801
800
 
802
801
    :param branch: The branch where the revisions exist
808
807
        import sys
809
808
        import codecs
810
809
        import bzrlib
811
 
        to_file = codecs.getwriter(bzrlib.user_encoding)(sys.stdout, errors='replace')
 
810
        to_file = codecs.getwriter(bzrlib.user_encoding)(sys.stdout,
 
811
                                                         errors='replace')
812
812
    lf = log_formatter(log_format,
813
813
                       show_ids=False,
814
814
                       to_file=to_file,
845
845
        show_log(branch,
846
846
                 lf,
847
847
                 None,
848
 
                 verbose=True,
 
848
                 verbose=False,
849
849
                 direction='forward',
850
850
                 start_revision=base_idx+1,
851
851
                 end_revision=len(new_rh),