comparison hgext/children.py @ 7369:87158be081b8

cmdutil: use change contexts for cset-printer and cset-templater
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 14 Nov 2008 13:59:25 +0100
parents f6c00b17387c
children c756e695012a
comparison
equal deleted inserted replaced
7368:595ba2537d4f 7369:87158be081b8
26 ctx = repo.filectx(file_, changeid=rev) 26 ctx = repo.filectx(file_, changeid=rev)
27 else: 27 else:
28 ctx = repo[rev] 28 ctx = repo[rev]
29 29
30 displayer = cmdutil.show_changeset(ui, repo, opts) 30 displayer = cmdutil.show_changeset(ui, repo, opts)
31 for node in [cp.node() for cp in ctx.children()]: 31 for cctx in ctx.children():
32 displayer.show(changenode=node) 32 displayer.show(cctx)
33 33
34 34
35 cmdtable = { 35 cmdtable = {
36 "children": 36 "children":
37 (children, 37 (children,