~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2005-10-13 15:21:50 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@panoramicfeedback.com-20051013152150-454a9cc25007f24d
Added one-line log format

Show diffs side-by-side

added added

removed removed

Lines of Context:
703
703
 
704
704
    takes_args = ['filename?']
705
705
    takes_options = ['forward', 'timezone', 'verbose', 'show-ids', 'revision',
706
 
                     'long', 'message', 'short',]
 
706
                     'long', 'message', 'short', 'line',]
707
707
    
708
708
    def run(self, filename=None, timezone='original',
709
709
            verbose=False,
712
712
            revision=None,
713
713
            message=None,
714
714
            long=False,
715
 
            short=False):
 
715
            short=False,
 
716
            line=False):
716
717
        from bzrlib.log import log_formatter, show_log
717
718
        import codecs
718
719
 
751
752
        # in e.g. the default C locale.
752
753
        outf = codecs.getwriter(bzrlib.user_encoding)(sys.stdout, errors='replace')
753
754
 
754
 
        if not short:
755
 
            log_format = 'long'
756
 
        else:
 
755
        log_format = 'long'
 
756
        if short:
757
757
            log_format = 'short'
 
758
        if line:
 
759
            log_format = 'line'
758
760
        lf = log_formatter(log_format,
759
761
                           show_ids=show_ids,
760
762
                           to_file=outf,