# HG changeset patch # User Matt Mackall # Date 1215819962 18000 # Node ID e3bb005373b102b4ae450ec0d96f090543f8c06e # Parent 80605a8127e0e13fe825e8cb6eabdb847c41a3e6 hgk: fix parent breakage diff -r 80605a8127e0 -r e3bb005373b1 hgext/hgk.py --- 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()