ok
Direktori : /proc/self/root/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/ |
Current File : //proc/self/root/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/mercurial.pyc |
� �2{Yc @ s� d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d e f d � � YZ e j e � d S( i����N( t call_subprocess( t display_patht rmtree( t logger( t vcst VersionControl( t path_to_url( t ConfigParsert Mercurialc B s� e Z d Z d Z d Z d Z d Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( t hgs .hgt clones hg+https hg+httpss hg+sshs hg+static-https hg-clone.txtsg # This was a Mercurial repo; to make it a repo again run: hg init hg pull %(url)s hg update -r %(rev)s c C s� d } } x� | j � D]� } | j � s | j � j d � rE q n t j d | � } | ru | j d � j � } n t j d | � } | r� | j d � j � } n | r | r | | f Sq Wd S( Nt #s hg\s*pull\s*(.*)\s*i s ^hg\s*update\s*-r\s*(.*)\s*( NN( t Nonet splitlinest stript startswitht ret searcht group( t selft contentt urlt revt linet url_matcht rev_match( ( sB /opt/alt/python33/lib/python3.3/site-packages/pip/vcs/mercurial.pyt parse_vcs_bundle_file s "c C s` t j d d � } | j | � z/ t | j d | g d | j d t d | �Wd t | � Xd S( s? Export the Hg repository at the url to the destination locations -exports pip-t archivet filter_stdoutt show_stdoutt cwdN( t tempfilet mkdtempt unpackR t cmdt _filtert FalseR ( R t locationt temp_dir( ( sB /opt/alt/python33/lib/python3.3/site-packages/pip/vcs/mercurial.pyt export% s c C s� t j j | | j d � } t j � } yJ | j | � | j d d | � t | d � } | j | � | j � WnA t t j f k r� t j � d } t j d | | f � n! Xt | j d d g | d | �d S( Nt hgrct pathst defaultt wi s/ Could not switch Mercurial repository to %s: %st updates -qR ( t ost patht joint dirnameR t SafeConfigParsert readt sett opent writet closet OSErrort NoSectionErrort syst exc_infoR t warnR R"