/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Erik Bågfors
  • Date: 2006-02-04 11:36:23 UTC
  • mto: (1185.50.77 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: erik@bagfors.nu-20060204113623-016da21eeb5723ca
Support for setting the default log format at a configuration option
Also, removed the possibility for plugins to set the default formatter

Show diffs side-by-side

added added

removed removed

Lines of Context:
961
961
        outf = codecs.getwriter(bzrlib.user_encoding)(sys.stdout, errors='replace')
962
962
 
963
963
        if (log_format == None):
964
 
            log_format = get_log_format(long=long, short=short, line=line)
 
964
            default = bzrlib.config.BranchConfig(b).log_formatter()
 
965
            log_format = get_log_format(long=long, short=short, line=line, default=default)
965
966
 
966
967
        lf = log_formatter(log_format,
967
968
                           show_ids=show_ids,
977
978
                 end_revision=rev2,
978
979
                 search=message)
979
980
 
980
 
def get_log_format(long=False, short=False, line=False, default='default'):
 
981
def get_log_format(long=False, short=False, line=False, default='long'):
981
982
    log_format = default
982
983
    if long:
983
984
        log_format = 'long'