hgext/children.py
changeset 24482 3eb9045396b0
parent 21780 2d3fb8476d7a
child 25186 80c5b2666a96
--- a/hgext/children.py	Fri Mar 27 15:13:21 2015 -0500
+++ b/hgext/children.py	Thu Mar 26 23:56:18 2015 +0900
@@ -39,11 +39,13 @@
     """
     rev = opts.get('rev')
     if file_:
-        ctx = repo.filectx(file_, changeid=rev)
+        fctx = repo.filectx(file_, changeid=rev)
+        childctxs = [fcctx.changectx() for fcctx in fctx.children()]
     else:
         ctx = repo[rev]
+        childctxs = ctx.children()
 
     displayer = cmdutil.show_changeset(ui, repo, opts)
-    for cctx in ctx.children():
+    for cctx in childctxs:
         displayer.show(cctx)
     displayer.close()