diff -r 1dca460e7d1e -r f6c00b17387c hgext/hgk.py --- a/hgext/hgk.py Thu Jun 26 13:58:24 2008 -0500 +++ b/hgext/hgk.py Thu Jun 26 14:35:46 2008 -0500 @@ -52,8 +52,8 @@ """diff trees from two commits""" def __difftree(repo, node1, node2, files=[]): assert node2 is not None - mmap = repo.changectx(node1).manifest() - mmap2 = repo.changectx(node2).manifest() + mmap = repo[node1].manifest() + mmap2 = repo[node2].manifest() m = cmdutil.match(repo, files) status = repo.status(node1, node2, match=m)[:5] modified, added, removed, deleted, unknown = status @@ -103,7 +103,7 @@ def catcommit(ui, repo, n, prefix, ctx=None): nlprefix = '\n' + prefix; if ctx is None: - ctx = repo.changectx(n) + 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())) @@ -191,7 +191,7 @@ l[chunk - x:] = [0] * (chunk - x) break if full != None: - l[x] = repo.changectx(i + x) + l[x] = repo[i + x] l[x].changeset() # force reading else: l[x] = 1