hgext/children.py
changeset 35888 c8e2d6ed1f9e
parent 34973 11a372d80496
child 37265 923362010525
equal deleted inserted replaced
35887:572f36e9a780 35888:c8e2d6ed1f9e
    17 from __future__ import absolute_import
    17 from __future__ import absolute_import
    18 
    18 
    19 from mercurial.i18n import _
    19 from mercurial.i18n import _
    20 from mercurial import (
    20 from mercurial import (
    21     cmdutil,
    21     cmdutil,
       
    22     logcmdutil,
    22     pycompat,
    23     pycompat,
    23     registrar,
    24     registrar,
    24 )
    25 )
    25 
    26 
    26 templateopts = cmdutil.templateopts
    27 templateopts = cmdutil.templateopts
    63         childctxs = [fcctx.changectx() for fcctx in fctx.children()]
    64         childctxs = [fcctx.changectx() for fcctx in fctx.children()]
    64     else:
    65     else:
    65         ctx = repo[rev]
    66         ctx = repo[rev]
    66         childctxs = ctx.children()
    67         childctxs = ctx.children()
    67 
    68 
    68     displayer = cmdutil.show_changeset(ui, repo, opts)
    69     displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
    69     for cctx in childctxs:
    70     for cctx in childctxs:
    70         displayer.show(cctx)
    71         displayer.show(cctx)
    71     displayer.close()
    72     displayer.close()