887
893
def log_revision(self, revision):
888
894
self.to_file.write(self.log_string(revision.revno, revision.rev,
892
def log_string(self, revno, rev, max_chars):
898
def log_string(self, revno, rev, max_chars, tags=None):
893
899
"""Format log info into one string. Truncate tail of string
894
900
:param revno: revision number or None.
895
901
Revision numbers counts from 1.
897
903
:param max_chars: maximum length of resulting string
898
905
:return: formatted truncated string