~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.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:
450
450
    lf = LineLogFormatter(None)
451
451
    return lf.log_string(rev, max_chars)
452
452
 
453
 
FORMATTERS = {'default': LongLogFormatter,
 
453
FORMATTERS = {
454
454
              'long': LongLogFormatter,
455
455
              'short': ShortLogFormatter,
456
456
              'line': LineLogFormatter,
459
459
def register_formatter(name, formatter):
460
460
    FORMATTERS[name] = formatter
461
461
 
462
 
def set_default_formatter(formatter):
463
 
    FORMATTERS['default'] = formatter
464
 
 
465
 
 
466
462
def log_formatter(name, *args, **kwargs):
467
463
    """Construct a formatter from arguments.
468
464