~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-15 05:56:03 UTC
  • mfrom: (1551.17.6 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070815055603-t0fwzxv6if6sr7c6
pull -v no longer shows deltas, just logs

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
 
802
800
    lf.show(revno, rev, delta)
803
801
 
804
802
 
805
 
def show_changed_revisions(branch, old_rh, new_rh, to_file=None, log_format='long'):
 
803
def show_changed_revisions(branch, old_rh, new_rh, to_file=None,
 
804
                           log_format='long'):
806
805
    """Show the change in revision history comparing the old revision history to the new one.
807
806
 
808
807
    :param branch: The branch where the revisions exist
814
813
        import sys
815
814
        import codecs
816
815
        import bzrlib
817
 
        to_file = codecs.getwriter(bzrlib.user_encoding)(sys.stdout, errors='replace')
 
816
        to_file = codecs.getwriter(bzrlib.user_encoding)(sys.stdout,
 
817
                                                         errors='replace')
818
818
    lf = log_formatter(log_format,
819
819
                       show_ids=False,
820
820
                       to_file=to_file,
851
851
        show_log(branch,
852
852
                 lf,
853
853
                 None,
854
 
                 verbose=True,
 
854
                 verbose=False,
855
855
                 direction='forward',
856
856
                 start_revision=base_idx+1,
857
857
                 end_revision=len(new_rh),