def log(repo='.', paths=None, outstream=sys.stdout, max_entries=None, reverse=False, name_status=False):
 with open_repo_closing(repo) as r:
  walker = r.get_walker(max_entries=max_entries, paths=paths, reverse=reverse)
  for entry in walker:
   decode = (lambda x: commit_decode(entry.commit, x))
   print_commit(entry.commit, decode, outstream)
   if name_status:
    outstream.writelines([(l + '\n') for l in print_name_status(entry.changes())])

def log ( repo = '.' , paths = None , outstream = sys . stdout , max_entries = None , reverse = False , name_status = False ) : with open_repo_closing ( repo ) as r : walker = r . get_walker ( max_entries = max_entries , paths = paths , reverse = reverse ) for entry in walker : decode = ( lambda x : commit_decode ( entry . commit , x ) ) print_commit ( entry . commit , decode , outstream ) if name_status : outstream . writelines ( [ ( l + '\n' ) for l in print_name_status ( entry . changes ( ) ) ] )
dump message into log file .