~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Aaron Bentley
  • Date: 2005-10-13 16:16:50 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@panoramicfeedback.com-20051013161650-c44c58f105d9f7cb
Use line log for pending merges

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
        out.append(self.message(rev).replace('\n', ' '))
457
457
        return self.truncate(" ".join(out).rstrip('\n'), max_chars)
458
458
 
 
459
def line_log(rev, max_chars):
 
460
    lf = LineLogFormatter(None)
 
461
    return lf.log_string(rev, max_chars)
 
462
 
459
463
FORMATTERS = {'long': LongLogFormatter,
460
464
              'short': ShortLogFormatter,
461
465
              'line': LineLogFormatter,
465
469
def log_formatter(name, *args, **kwargs):
466
470
    """Construct a formatter from arguments.
467
471
 
468
 
    name -- Name of the formatter to construct; currently 'long' and
469
 
        'short' are supported.
 
472
    name -- Name of the formatter to construct; currently 'long', 'short' and
 
473
        'line' are supported.
470
474
    """
471
475
    from bzrlib.errors import BzrCommandError
472
476
    try: