o ]Lba @sdZddlmZddlmZddlmZmZmZm Z ej Z iZ e e Z dZ e dddd ed ed fge ed e jd ddddZdS)zcommand to display child changesets (DEPRECATED) This extension is deprecated. You should use :hg:`log -r "children(REV)"` instead. )absolute_import)_)cmdutil logcmdutilpycompat registrarsships-with-hg-coreschildrenrrev.s'show children of the specified revisionsREVshg children [-r REV] [FILE]T) helpcategory inferrepoNc Kst|}|d}t||}|r%|j||d}dd|D}n|}t|||}|D]} | | q2| dS)aGshow the children of the given or working directory revision Print the children of the working directory's revisions. If a revision is given via -r/--rev, the children of that revision will be printed. If a file argument is given, revision in which the file was last changed (after the working directory revision or the argument to --rev if given) is printed. Please use :hg:`log` instead:: hg children => hg log -r "children(.)" hg children -r REV => hg log -r "children(REV)" See :hg:`help log` and :hg:`help revsets.children`. r )changeidcSsg|]}|qS) changectx).0fcctxrr0/usr/lib/python3/dist-packages/hgext/children.py Lszchildren..N) r byteskwargsgetr revsinglefilectxrevchildrenchangesetdisplayershowclose) uirepofile_optsrctxfctx childctxs displayercctxrrrr&s !    r)N)__doc__ __future__rmercurial.i18nr mercurialrrrr templateoptscmdtablecommand testedwithCATEGORY_CHANGE_NAVIGATIONrrrrrs0