~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Ian Clatworthy
  • Date: 2009-01-27 23:06:35 UTC
  • mfrom: (3943.5.6 bzr.log-show-diff)
  • mto: This revision was merged to the branch mainline in revision 3965.
  • Revision ID: ian.clatworthy@canonical.com-20090127230635-70o18gj41uukrrzx
Optionally show diff in log (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1862
1862
                   help='Limit the output to the first N revisions.',
1863
1863
                   argname='N',
1864
1864
                   type=_parse_limit),
 
1865
            Option('show-diff',
 
1866
                   short_name='p',
 
1867
                   help='Show changes made in each revision as a patch.'),
1865
1868
            ]
1866
1869
    encoding_type = 'replace'
1867
1870
 
1874
1877
            change=None,
1875
1878
            log_format=None,
1876
1879
            message=None,
1877
 
            limit=None):
 
1880
            limit=None,
 
1881
            show_diff=False):
1878
1882
        from bzrlib.log import show_log
1879
1883
        direction = (forward and 'forward') or 'reverse'
1880
1884
 
1931
1935
                     start_revision=rev1,
1932
1936
                     end_revision=rev2,
1933
1937
                     search=message,
1934
 
                     limit=limit)
 
1938
                     limit=limit,
 
1939
                     show_diff=show_diff)
1935
1940
        finally:
1936
1941
            b.unlock()
1937
1942