Cleaned up show_changeset()
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Cleaned up show_changeset()
manifest hash:
f9aa30cfa465d7aa096abb652ec04f1a5ec1072f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCroC+W7P1GVgWeRoRAuheAJsEx7eFaoHoz+YejLIiN4BS
fE117ACfYdM6
NQGNTp3ftUSuVpcMLvV8A1U=
=8Ihb
-----END PGP SIGNATURE-----
--- 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):