ó
T³úVc           @   sĦ   d  Z  d d l m Z d d l m Z d d l m Z i  Z e j e  Z d Z	 e d d d d	 e d
  e d  f g e e d  d e
 d d   Z d S(   s   command to display child changesets (DEPRECATED)

This extension is deprecated. You should use :hg:`log -r
"children(REV)"` instead.
i˙˙˙˙(   t   cmdutil(   t   templateopts(   t   _t   internalt   childrent   rt   revt    s'   show children of the specified revisiont   REVs   hg children [-r REV] [FILE]t	   inferrepoc         K   sİ   | j  d  } | rR | j | d | } g  | j   D] } | j   ^ q7 } n | | } | j   } t j |  | |  }	 x | D] }
 |	 j |
  q W|	 j   d S(   sF  show 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   t   changeidN(   t   gett   filectxR   t	   changectxR    t   show_changesett   showt   close(   t   uit   repot   file_t   optsR   t   fctxt   fcctxt	   childctxst   ctxt	   displayert   cctx(    (    s2   /usr/lib/python2.7/dist-packages/hgext/children.pyR      s    (
N(   t   __doc__t	   mercurialR    t   mercurial.commandsR   t   mercurial.i18nR   t   cmdtablet   commandt
   testedwitht   Truet   NoneR   (    (    (    s2   /usr/lib/python2.7/dist-packages/hgext/children.pyt   <module>   s   	