changeset 6768:e3bb005373b1

hgk: fix parent breakage
author Matt Mackall <mpm@selenic.com>
date Fri, 11 Jul 2008 18:46:02 -0500
parents 80605a8127e0
children 97c12b1ed1e0
files hgext/hgk.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Fri Jul 11 18:46:02 2008 -0500
+++ b/hgext/hgk.py	Fri Jul 11 18:46:02 2008 -0500
@@ -102,10 +102,10 @@
     nlprefix = '\n' + prefix;
     if ctx is None:
         ctx = repo[n]
-    (p1, p2) = ctx.parents()
     ui.write("tree %s\n" % short(ctx.changeset()[0])) # use ctx.node() instead ??
-    if p1: ui.write("parent %s\n" % short(p1.node()))
-    if p2: ui.write("parent %s\n" % short(p2.node()))
+    for p in ctx.parents():
+        ui.write("parent %s\n" % p)
+
     date = ctx.date()
     description = ctx.description().replace("\0", "")
     lines = description.splitlines()