Edit file File name : closehead.pyc Content :� �_^c @@ s� d Z d d l m Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m Z i Z e j e � Z d Z e j Z e j Z d d g e d � e d � f g Z e d e e e e d � d e j d e �d � � Z d S( s5 close arbitrary heads without checking them out firsti ( t absolute_import( t _( t bookmarkst cmdutilt contextt errort pycompatt registrart scmutils ships-with-hg-coret rt revs revision to checkt REVs close-head|close-headss [OPTION]... [REV]...t helpcategoryt inferrepoc @ s� � � � � f d � } t j � � � | t � j d g � � 7} t j � | � } | ss t j t d � � � n g } x* � j � D] } | j � j | � � q� Wt � f d � | D� � } x6 | D]. } | | k r� t j t d � | � � q� q� Wt j | � � � � s+t j t d � � � n i d d 6� � j � �S � j � �@ x8 | D]0 } � | } | j � } | � d <| | � qYWWd QXWd QXd S( s close the given head revisions This is equivalent to checking out each revision in a clean tree and running ``hg commit --close-branch``, except that it doesn't change the working directory. The commit message must be specified with -l or -m. c @ s� t j � d | d g d � d g d d d � j d � d � j d � d � �} � j d � } � j | t � } t j � | d g | � | j | � | j � d S( Nt parentst textt filest filectxfnt usert datet extrat commit( R t memctxt Nonet gett transactiont commitctxt TrueR t updatet markcommittedt close( R t cctxt trt ret( R t messaget optst repo( s3 /usr/lib/python2.7/dist-packages/hgext/closehead.pyt docommit3 s R s no revisions specifiedc 3@ s | ] } � | j � Vq d S( N( R ( t .0t h( R$ ( s3 /usr/lib/python2.7/dist-packages/hgext/closehead.pys <genexpr>O s s revision is not an open head: %ds) no commit message specified with -l or -mt 1R t branchNi ( R t byteskwargst tupleR R t revrangeR t AbortR t branchmapt extendt branchheadst setR t logmessaget wlockt lockR) ( t uiR$ t revsR# R% t headsR) R R ( ( R R"