Mercurial > hg
changeset 6800:cc7114d96548
hgk: ctx.parents() problem introduced by 2d54e7c1e69d
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 05 Jul 2008 14:35:36 +0200 |
parents | 12d1e1e79faf |
children | 04503b757935 |
files | hgext/hgk.py tests/test-hgk tests/test-hgk.out |
diffstat | 3 files changed, 22 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/hgk.py Sat Jul 05 14:35:34 2008 +0200 +++ b/hgext/hgk.py Sat Jul 05 14:35:36 2008 +0200 @@ -102,10 +102,9 @@ 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" % short(p.node())) date = ctx.date() description = ctx.description().replace("\0", "") lines = description.splitlines()