a +ba @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)Z helpcategoryZ inferrepoNc Kst|}|d}t||}|rJ|j||d}dd|D}n|}t|||}|D]} | | qd| 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 )ZchangeidcSsg|] }|qS)Z changectx).0Zfcctxr r 4/usr/lib64/python3.9/site-packages/hgext/children.py Lzchildren..N) rZ byteskwargsgetrZ revsingleZfilectxrevchildrenZchangesetdisplayerZshowclose) ZuiZrepoZfile_ZoptsrctxZfctxZ childctxsZ displayerZcctxr r r r&s!    r)N)__doc__Z __future__rZmercurial.i18nrZ mercurialrrrrZ templateoptsZcmdtableZcommandZ testedwithZCATEGORY_CHANGE_NAVIGATIONrr r r r  s.