ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
abc           @@  s   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l m Z m Z d  d l m	 Z	 m
 Z
 d  d l m Z d  d l m Z e j e  Z d e
 f d     YZ e	 j e  d S(	   i    (   t   absolute_importN(   t   display_patht   rmtree(   t   vcst   VersionControl(   t   path_to_url(   t   configparsert	   Mercurialc           B@  sq   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 RS(   t   hgs   .hgt   clones   hg+https   hg+httpss   hg+sshs   hg+static-httpc         C@  sT   t  j d d  } |  j |  z# |  j d | g d t d | Wd t |  Xd S(   s?   Export the Hg repository at the url to the destination locations   -exports   pip-t   archivet   show_stdoutt   cwdN(   t   tempfilet   mkdtempt   unpackt   run_commandt   FalseR   (   t   selft   locationt   temp_dir(    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   export   s    c         C@  s   t  j j | |  j d  } t j   } yI | j |  | j d d |  t | d   } | j	 |  Wd  QXWn/ t
 t j f k
 r } t j d | |  n X|  j d d g | d | d  S(	   Nt   hgrct   pathst   defaultt   ws/   Could not switch Mercurial repository to %s: %st   updates   -qR   (   t   ost   patht   joint   dirnameR   t   SafeConfigParsert   readt   sett   opent   writet   OSErrort   NoSectionErrort   loggert   warningR   (   R   t   destt   urlt   rev_optionst   repo_configt   configt   config_filet   exc(    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   switch    s    c         C@  s:   |  j  d d g d | |  j  d d g | d | d  S(   Nt   pulls   -qR   R   (   R   (   R   R(   R*   (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyR   /   s    c         C@  s   |  j    \ } } | r. | g } d | } n g  } d } |  j | | | |  r t j d | | t |   |  j d d d | | g  |  j d d g | d | n  d  S(	   Ns    (to revision %s)t    s   Cloning hg %s%s to %sR	   s
   --noupdates   -qR   R   (   t   get_url_revt   check_destinationR&   t   infoR   R   (   R   R(   R)   t   revR*   t   rev_display(    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   obtain3   s    	c         C@  sO   |  j  d d g d t d | j   } |  j |  rE t |  } n  | j   S(   Nt
   showconfigs   paths.defaultR   R   (   R   R   t   stript   _is_local_repositoryR   (   R   R   R)   (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   get_urlE   s    c         C@  s+   |  j  d d g d t d | j   } | S(   Nt   parentss   --template={rev}R   R   (   R   R   R9   (   R   R   t   current_revision(    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   get_revisionM   s    c         C@  s+   |  j  d d g d t d | j   } | S(   NR<   s   --template={node}R   R   (   R   R   R9   (   R   R   t   current_rev_hash(    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   get_revision_hashS   s    c         C@  sw   |  j  |  } | j   j d  s1 d | } n  | j   j d d  d } | sW d  S|  j |  } d | | | f S(   Ns   hg:s   hg+t   -i   i    s   %s@%s#egg=%s(   R;   t   lowert
   startswitht   egg_namet   splitt   NoneR@   (   R   t   distR   t   repot   egg_project_nameR?   (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   get_src_requirementY   s    c         C@  s   t  S(   s&   Always assume the versions don't match(   R   (   R   R(   R*   (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   check_versionc   s    (   R   s   hg+https   hg+httpss   hg+sshs   hg+static-http(   t   __name__t
   __module__t   nameR   t	   repo_namet   schemesR   R/   R   R7   R;   R>   R@   RJ   RK   (    (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyR      s   	
							
(   t
   __future__R    t   loggingR   R   t	   pip.utilsR   R   t   pip.vcsR   R   t   pip.downloadR   t   pip._vendor.six.movesR   t	   getLoggerRL   R&   R   t   register(    (    (    s5   /usr/lib/python2.7/site-packages/pip/vcs/mercurial.pyt   <module>   s   W