~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-28 09:41:13 UTC
  • mfrom: (3964.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090128094113-ze5jnburw91g2e4n
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