diff -r 27d08c0c2a7e -r a0b2758edee7 mercurial/commands.py --- a/mercurial/commands.py Mon Jun 13 18:36:40 2005 -0800 +++ b/mercurial/commands.py Tue Jun 14 08:01:18 2005 +0100 @@ -81,8 +81,8 @@ changerev = filelog.linkrev(filenode) changenode = changenode or changelog.node(changerev) else: + log = changelog changerev = rev - log = changelog if changenode is None: changenode = changelog.node(changerev) elif not changerev: @@ -94,7 +94,6 @@ return changes = changelog.read(changenode) - description = changes[4].strip().splitlines() parents = [(log.rev(parent), hg.hex(parent)) for parent in log.parents(node) @@ -117,13 +116,14 @@ ui.status("date: %s\n" % time.asctime( time.localtime(float(changes[2].split(' ')[0])))) ui.note("files: %s\n" % " ".join(changes[3])) + description = changes[4].strip() if description: if ui.verbose: ui.status("description:\n") - ui.status(changes[4].strip()) - ui.status("\n") + ui.status(description) + ui.status("\n\n") else: - ui.status("summary: %s\n" % description[0]) + ui.status("summary: %s\n" % description.splitlines()[0]) ui.status("\n") def help(ui, cmd=None):