##// END OF EJS Templates
children: don't pass filectx to displayer...
Yuya Nishihara -
r24482:3eb90453 default
parent child Browse files
Show More
@@ -39,11 +39,13 b' def children(ui, repo, file_=None, **opt'
39 39 """
40 40 rev = opts.get('rev')
41 41 if file_:
42 ctx = repo.filectx(file_, changeid=rev)
42 fctx = repo.filectx(file_, changeid=rev)
43 childctxs = [fcctx.changectx() for fcctx in fctx.children()]
43 44 else:
44 45 ctx = repo[rev]
46 childctxs = ctx.children()
45 47
46 48 displayer = cmdutil.show_changeset(ui, repo, opts)
47 for cctx in ctx.children():
49 for cctx in childctxs:
48 50 displayer.show(cctx)
49 51 displayer.close()
@@ -122,4 +122,12 b' hg children file0 at revision 0 (should '
122 122 summary: 2
123 123
124 124
125 should be compatible with templater (don't pass fctx to displayer)
126 $ hg children file0 -Tdefault
127 changeset: 2:8f5eea5023c2
128 user: test
129 date: Thu Jan 01 00:00:02 1970 +0000
130 summary: 2
131
132
125 133 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now