346
346
class LongLogFormatter(LogFormatter):
347
347
def show(self, revno, rev, delta):
348
from osutils import format_date
350
to_file = self.to_file
352
print >>to_file, '-' * 60
353
print >>to_file, 'revno:', revno
355
print >>to_file, 'revision-id:', rev.revision_id
357
for parent_id in rev.parent_ids:
358
print >>to_file, 'parent:', parent_id
360
print >>to_file, 'committer:', rev.committer
362
print >>to_file, "branch nick: %s" % \
363
rev.properties['branch-nick']
367
date_str = format_date(rev.timestamp,
370
print >>to_file, 'timestamp: %s' % date_str
372
print >>to_file, 'message:'
374
print >>to_file, ' (no message)'
376
for l in rev.message.split('\n'):
377
print >>to_file, ' ' + l
380
delta.show(to_file, self.show_ids)
348
return self._show_helper(revno=revno, rev=rev)
382
350
def show_merge(self, rev):
351
return self._show_helper(rev=rev, indent=' ', merged=True)
353
def _show_helper(self, rev=None, revno=None, indent='', merged=False):
383
354
from osutils import format_date
385
356
to_file = self.to_file
389
359
print >>to_file, indent+'-' * 60
390
print >>to_file, indent+'merged:', rev.revision_id
360
if revno is not None:
361
print >>to_file, 'revno:', revno
363
print >>to_file, indent+'merged:', rev.revision_id
365
print >>to_file, indent+'revision-id:', rev.revision_id
391
366
if self.show_ids:
392
367
for parent_id in rev.parent_ids:
393
368
print >>to_file, indent+'parent:', parent_id