Ë
    ��h¨W  ã                   óò  — d Z ddlZddl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mZmZmZmZmZmZmZmZmZ ddlmZ ddlmZmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z( d	gZ) ejT                  e+«      Z,eee-   ee-   f   Z.d
e-de/fd„Z0	 d!de-de-de-dee-   de-f
d„Z1de-de-dee-   fd„Z2 G d„ de3«      Z4 G d„ de3«      Z5 ed¬«       G d„ d«      «       Z6 G d„ d«      Z7 e7«       Z8 G d„ d «      Z9y)"z)Handles all VCS (version control) supporté    N)Ú	dataclassÚfield)ÚAnyÚDictÚIterableÚIteratorÚListÚLiteralÚMappingÚOptionalÚTupleÚTypeÚUnion)ÚSpinnerInterface)Ú
BadCommandÚInstallationError)Ú
HiddenTextÚask_path_existsÚ
backup_dirÚdisplay_pathÚhide_urlÚ
hide_valueÚis_installable_dirÚrmtree)ÚCommandArgsÚcall_subprocessÚformat_command_argsÚmake_commandÚvcsÚnameÚreturnc                 óˆ   — t         j                  j                  | «      j                  }|sy|g d¢t        j
                  z   v S )z3
    Return true if the name looks like a URL.
    F)ÚhttpÚhttpsÚfileÚftp)ÚurllibÚparseÚurlsplitÚschemer   Úall_schemes)r    r*   s     ú^/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pip/_internal/vcs/versioncontrol.pyÚis_urlr-   2   s9   € ô �\‰\×"Ñ" 4Ó(×/Ñ/€FÙØØÒ5¼¿¹ÑGÐGÐGó    Úrepo_urlÚrevÚproject_nameÚsubdirc                 óR   — |j                  dd«      }| › d|› d|› �}|r|d|› �z  }|S )zº
    Return the URL for a VCS requirement.

    Args:
      repo_url: the remote VCS url, with any needed VCS prefix (e.g. "git+").
      project_name: the (unescaped) project name.
    ú-Ú_ú@z#egg=z&subdirectory=)Úreplace)r/   r0   r1   r2   Úegg_project_nameÚreqs         r,   Úmake_vcs_requirement_urlr:   <   sH   € ð $×+Ñ+¨C°Ó5ÐØˆJ�a˜�u˜EÐ"2Ð!3Ð
4€CÙØ� ˜xÐ(Ñ(ˆà€Jr.   ÚlocationÚ	repo_rootc                 ó0  — | }t        | «      sI| }t        j                  j                  | «      } | |k(  rt        j                  d|«       yt        | «      sŒIt        j                  j                  || «      ryt        j                  j                  | |«      S )zá
    Find the the Python project's root by searching up the filesystem from
    `location`. Return the path to project root relative to `repo_root`.
    Return None if the project root is `repo_root`, or cannot be found.
    zOCould not find a Python project for directory %s (tried all parent directories)N)r   ÚosÚpathÚdirnameÚloggerÚwarningÚsamefileÚrelpath)r;   r<   Úorig_locationÚlast_locations       r,   Ú(find_path_to_project_root_from_repo_rootrG   N   sƒ   € ð €MÜ  Ô*Ø ˆÜ—7‘7—?‘? 8Ó,ˆØ�}Ò$ô �N‰Nð&àôð
 ô ! Õ*ô 
‡w�w×Ñ˜	 8Ô,Øä�7‰7�?‰?˜8 YÓ/Ð/r.   c                   ó   — e Zd Zy)ÚRemoteNotFoundErrorN)Ú__name__Ú
__module__Ú__qualname__© r.   r,   rI   rI   k   s   „ Ør.   rI   c                   ó$   ‡ — e Zd Zdefˆ fd„Zˆ xZS )ÚRemoteNotValidErrorÚurlc                 ó2   •— t         ‰| �  |«       || _        y ©N)ÚsuperÚ__init__rP   )ÚselfrP   Ú	__class__s     €r,   rT   zRemoteNotValidError.__init__p   s   ø€ Ü‰Ñ˜ÔØˆ�r.   )rJ   rK   rL   ÚstrrT   Ú__classcell__©rV   s   @r,   rO   rO   o   s   ø„ ð˜C÷ ñ r.   rO   T)Úfrozenc                   ó¶   — e Zd ZU dZed   ed<   dZee   ed<    e	e
¬«      Zeed<   dZee   ed<   d	efd
„Zed	ee   fd„«       Zd	efd„Zd	efd„Zded	d fd„Zy)Ú
RevOptionszù
    Encapsulates a VCS-specific revision to install, along with any VCS
    install options.

    Args:
        vc_class: a VersionControl subclass.
        rev: the name of the revision to install.
        extra_args: a list of extra options.
    ÚVersionControlÚvc_classNr0   )Údefault_factoryÚ
extra_argsÚbranch_namer!   c                 óP   — d| j                   j                  › d| j                  ›d�S )Nz<RevOptions z: rev=ú>)r^   r    r0   ©rU   s    r,   Ú__repr__zRevOptions.__repr__†   s&   € Ø˜dŸm™m×0Ñ0Ð1°¸¿¹°|À1ÐEÐEr.   c                 ó^   — | j                   €| j                  j                  S | j                   S rR   )r0   r^   Údefault_arg_revrd   s    r,   Úarg_revzRevOptions.arg_rev‰   s%   € à�8‰8ÐØ—=‘=×0Ñ0Ð0à�x‰xˆr.   c                 ó€   — g }| j                   }|�|| j                  j                  |«      z  }|| j                  z  }|S )z<
        Return the VCS-specific command arguments.
        )rh   r^   Úget_base_rev_argsr`   )rU   Úargsr0   s      r,   Úto_argszRevOptions.to_args�   sC   € ð ˆØ�l‰lˆØˆ?Ø�D—M‘M×3Ñ3°CÓ8Ñ8ˆDØ�—‘Ñˆàˆr.   c                 ó<   — | j                   syd| j                   › d�S )NÚ z (to revision ú)©r0   rd   s    r,   Ú
to_displayzRevOptions.to_displayœ   s   € Ø�xŠxØà §¡˜z¨Ð+Ð+r.   c                 óP   — | j                   j                  || j                  ¬«      S )z•
        Make a copy of the current instance, but with a new rev.

        Args:
          rev: the name of the revision for the new object.
        ©r`   )r^   Úmake_rev_optionsr`   )rU   r0   s     r,   Úmake_newzRevOptions.make_new¢   s"   € ð �}‰}×-Ñ-¨c¸d¿o¹oÐ-ÓNÐNr.   )rJ   rK   rL   Ú__doc__r   Ú__annotations__r0   r   rW   r   Úlistr`   r   ra   re   Úpropertyrh   rl   rq   ru   rM   r.   r,   r\   r\   u   s›   … ñð Ð#Ñ$Ó$Ø€Cˆ�#‰ÓÙ#°DÔ9€J�Ó9Ø!%€K�˜#‘Ó%ðF˜#ó Fð ð˜ #™ò ó ðð
˜ó 
ð,˜Có ,ðO˜Cð O Lô Or.   r\   c                   ó  ‡ — e Zd ZU i Zeedf   ed<   g d¢Zdˆ fd„Zde	e   fd„Z
eded   fd„«       Zedee   fd	„«       Zedee   fd
„«       Zded   ddfd„Zdeddfd„Zdeded   fd„Zdeded   fd„Zdeded   fd„Zˆ xZS )Ú
VcsSupportr]   Ú	_registry)ÚsshÚgitÚhgÚbzrÚsftpÚsvnr!   Nc                 óˆ   •— t         j                  j                  j                  | j                  «       t
        ‰| �  «        y rR   )r'   r(   Úuses_netlocÚextendÚschemesrS   rT   )rU   rV   s    €r,   rT   zVcsSupport.__init__°   s,   ø€ ô 	�‰× Ñ ×'Ñ'¨¯©Ô5Ü‰ÑÕr.   c                 ó6   — | j                   j                  «       S rR   )r|   Ú__iter__rd   s    r,   rˆ   zVcsSupport.__iter__¶   s   € Ø�~‰~×&Ñ&Ó(Ð(r.   c                 óH   — t        | j                  j                  «       «      S rR   )rx   r|   Úvaluesrd   s    r,   ÚbackendszVcsSupport.backends¹   s   € ä�D—N‘N×)Ñ)Ó+Ó,Ð,r.   c                 óT   — | j                   D �cg c]  }|j                  ‘Œ c}S c c}w rR   )r‹   r@   )rU   Úbackends     r,   ÚdirnameszVcsSupport.dirnames½   s   € à/3¯}©}Ö= G�—“Ò=Ð=ùÒ=s   �%c                 ób   — g }| j                   D ]  }|j                  |j                  «       Œ |S rR   )r‹   r…   r†   )rU   r†   r�   s      r,   r+   zVcsSupport.all_schemesÁ   s/   € àˆØ—}‘}ò 	,ˆGØ�N‰N˜7Ÿ?™?Õ+ð	,àˆr.   Úclsc                 ó  — t        |d«      s!t        j                  d|j                  «       y |j                  | j
                  vr? |«       | j
                  |j                  <   t        j                  d|j                  «       y y )Nr    zCannot register VCS %szRegistered VCS backend: %s)ÚhasattrrA   rB   rJ   r    r|   Údebug)rU   r�   s     r,   ÚregisterzVcsSupport.registerÈ   s^   € Ü�s˜FÔ#Ü�N‰NÐ3°S·\±\ÔBØØ�8‰8˜4Ÿ>™>Ñ)Ù'*£uˆD�N‰N˜3Ÿ8™8Ñ$Ü�L‰LÐ5°s·x±xÕ@ð *r.   r    c                 ó<   — || j                   v r| j                   |= y y rR   )r|   ©rU   r    s     r,   Ú
unregisterzVcsSupport.unregisterÐ   s   € Ø�4—>‘>Ñ!Ø—‘˜tÑ$ð "r.   r;   c                 óê   — i }| j                   j                  «       D ]<  }|j                  |«      }|sŒt        j	                  d||j
                  «       |||<   Œ> |syt        |t        ¬«      }||   S )zv
        Return a VersionControl object if a repository of that type is found
        at the given directory.
        zDetermine that %s uses VCS: %sN)Úkey)r|   rŠ   Úget_repository_rootrA   r“   r    ÚmaxÚlen)rU   r;   Úvcs_backendsÚvcs_backendÚ	repo_pathÚinner_most_repo_paths         r,   Úget_backend_for_dirzVcsSupport.get_backend_for_dirÔ   s   € ð
 ˆØŸ>™>×0Ñ0Ó2ò 	2ˆKØ#×7Ñ7¸ÓAˆIÙØÜ�L‰LÐ9¸8À[×EUÑEUÔVØ&1ˆL˜Ò#ð	2ñ Øô  # <´SÔ9ÐØÐ0Ñ1Ð1r.   r*   c                 óf   — | j                   j                  «       D ]  }||j                  v sŒ|c S  y)ú9
        Return a VersionControl object or None.
        N)r|   rŠ   r†   )rU   r*   rž   s      r,   Úget_backend_for_schemez!VcsSupport.get_backend_for_schemeë   s9   € ð  Ÿ>™>×0Ñ0Ó2ò 	#ˆKØ˜×,Ñ,Ò,Ø"Ò"ð	#ð r.   c                 óX   — |j                  «       }| j                  j                  |«      S )r£   )Úlowerr|   Úgetr–   s     r,   Úget_backendzVcsSupport.get_backendô   s$   € ð �z‰z‹|ˆØ�~‰~×!Ñ! $Ó'Ð'r.   )r!   N)rJ   rK   rL   r|   r   rW   rw   r†   rT   r   rˆ   ry   r	   r‹   rŽ   r+   r   r”   r—   r   r¡   r¤   r¨   rX   rY   s   @r,   r{   r{   ¬   s  ø… Ø-/€Iˆt�CÐ)Ð)Ñ*Ó/Ú8€Gõð)˜( 3™-ó )ð ð-˜$Ð/Ñ0ò -ó ð-ð ð>˜$˜s™)ò >ó ð>ð ð˜T #™Yò ó ððA˜DÐ!1Ñ2ð A°tó Að%˜sð % tó %ð2¨Cð 2°HÐ=MÑ4Nó 2ð.¨Sð °XÐ>NÑ5Oó ð( ð (¨Ð1AÑ(B÷ (r.   r{   c                   óÐ  — e Zd ZU dZdZdZdZeedf   e	d<   dZ
eedf   e	d<   dZee   e	d<   eded	efd
„«       Zeded	ee   fd„«       Zeded	efd„«       Zededed	efd„«       Zeded	ee   fd„«       Zdeded	efd„Ze	 d@dee   dee   d	efd„«       Zeded	efd„«       Zededed	eeeee   ee   f   f   fd„«       Zeded	eeee   ef   fd„«       Zedee   dee   d	efd „«       Zded	eeef   fd!„Z eded	efd"„«       Z!ed#ed$ed	efd%„«       Z"deded&ed'e#d	df
d(„Z$deded&ed	dfd)„Z%deded&ed	dfd*„Z&eded+ee   d	efd,„«       Z'deded'e#d	dfd-„Z(deded'e#d	dfd.„Z)eded	efd/„«       Z*eded	efd0„«       Z+e	 	 	 	 	 	 	 	 	 dAd1e,ee   ef   d2ed3ee   d4d5d6ee-e#      d7ee   d8ee.ee/f      d9ee0   d:ed;ed	efd<„«       Z1ed=ed	efd>„«       Z2eded	ee   fd?„«       Z3y)Br]   rn   rM   .r†   Úunset_environNrg   Ú
remote_urlr!   c                 ó\   — |j                  «       j                  | j                  › d�«       S )zŽ
        Return whether the vcs prefix (e.g. "git+") should be added to a
        repository's remote url when used in a requirement.
        ú:)r¦   Ú
startswithr    )r�   r«   s     r,   Úshould_add_vcs_url_prefixz(VersionControl.should_add_vcs_url_prefix	  s+   € ð ×#Ñ#Ó%×0Ñ0°C·H±H°:¸Q°Ó@Ð@Ð@r.   r;   c                  ó   — y)z‘
        Return the path to Python project root, relative to the repo root.
        Return None if the project root is in the repo root.
        NrM   ©r�   r;   s     r,   Úget_subdirectoryzVersionControl.get_subdirectory  s   € ð r.   Úrepo_dirc                 ó$   — | j                  |«      S )zR
        Return the revision string that should be used in a requirement.
        )Úget_revision)r�   r³   s     r,   Úget_requirement_revisionz'VersionControl.get_requirement_revision  s   € ð
 ×Ñ Ó)Ð)r.   r1   c                 óÎ   — | j                  |«      }| j                  |«      r| j                  › d|› �}| j                  |«      }| j	                  |«      }t        ||||¬«      }|S )aC  
        Return the requirement string to use to redownload the files
        currently at the given repository directory.

        Args:
          project_name: the (unescaped) project name.

        The return value has a form similar to the following:

            {repository_url}@{revision}#egg={project_name}
        ú+)r2   )Úget_remote_urlr¯   r    r¶   r²   r:   )r�   r³   r1   r/   Úrevisionr2   r9   s          r,   Úget_src_requirementz"VersionControl.get_src_requirement   sl   € ð ×%Ñ% hÓ/ˆà×(Ñ(¨Ô2ØŸ(™(˜ 1 X JÐ/ˆHà×/Ñ/°Ó9ˆØ×%Ñ% hÓ/ˆÜ& x°¸<ÐPVÔWˆàˆ
r.   r0   c                 ó   — t         ‚)z™
        Return the base revision arguments for a vcs command.

        Args:
          rev: the name of a revision to install.  Cannot be None.
        ©ÚNotImplementedErrorrp   s    r,   rj   z VersionControl.get_base_rev_args8  ó
   € ô "Ð!r.   rP   Údestc                  ó   — y)aZ  
        Return true if the commit hash checked out at dest matches
        the revision in url.

        Always return False, if the VCS does not support immutable commit
        hashes.

        This method does not check if there are local uncommitted changes
        in dest after checkout, as pip currently has no use case for that.
        FrM   )rU   rP   rÀ   s      r,   Úis_immutable_rev_checkoutz(VersionControl.is_immutable_rev_checkoutB  s   € ð r.   r`   c                 ó&   — t        | ||xs g ¬«      S )z�
        Return a RevOptions object.

        Args:
          rev: the name of a revision to install.
          extra_args: a list of extra options.
        rs   )r\   )r�   r0   r`   s      r,   rt   zVersionControl.make_rev_optionsO  s   € ô ˜#˜s¨zÒ/?¸RÔ@Ð@r.   Úrepoc                 ó²   — t         j                  j                  |«      \  }}|j                  t         j                  j                  «      xs t        |«      S )zs
        posix absolute paths start with os.path.sep,
        win32 ones start with drive (like c:\folder)
        )r>   r?   Ú
splitdriver®   ÚsepÚbool)r�   rÄ   ÚdriveÚtails       r,   Ú_is_local_repositoryz#VersionControl._is_local_repository\  s<   € ô —g‘g×(Ñ(¨Ó.‰ˆˆtØ�‰œrŸw™wŸ{™{Ó+Ò:¬t°E«{Ð:r.   Únetlocr*   c                 ó
   — |dfS )aZ  
        Parse the repository URL's netloc, and return the new netloc to use
        along with auth information.

        Args:
          netloc: the original repository URL netloc.
          scheme: the repository URL's scheme without the vcs prefix.

        This is mainly for the Subversion class to override, so that auth
        information can be provided via the --username and --password options
        instead of through the URL.  For other subclasses like Git without
        such an option, auth information must stay in the URL.

        Returns: (netloc, (username, password)).
        ©NNrM   )r�   rÌ   r*   s      r,   Úget_netloc_and_authz"VersionControl.get_netloc_and_authe  s   € ð& �|Ð#Ð#r.   c                 óp  — t         j                  j                  |«      \  }}}}}d|vrt        d|›d�«      ‚|j	                  dd«      d   }| j                  ||«      \  }}d}d|v r&|j                  dd«      \  }}|st        d|›d�«      ‚t         j                  j                  ||||d	f«      }|||fS )
z¢
        Parse the repository URL to use, and return the URL, revision,
        and auth info to use.

        Returns: (url, rev, (username, password)).
        r¸   zSorry, zk is a malformed VCS url. The format is <vcs>+<protocol>://<url>, e.g. svn+http://myrepo/svn/MyApp#egg=MyAppé   Nr6   zThe URL zm has an empty revision (after @) which is not supported. Include a revision after @ or remove @ from the URL.rn   )	r'   r(   r)   Ú
ValueErrorÚsplitrÏ   Úrsplitr   Ú
urlunsplit)	r�   rP   r*   rÌ   r?   ÚqueryÚfragÚ	user_passr0   s	            r,   Úget_url_rev_and_authz#VersionControl.get_url_rev_and_authz  sæ   € ô -3¯L©L×,AÑ,AÀ#Ó,FÑ)ˆ�˜˜e TØ�fÑÜØ˜#˜ð !=ð =óð ð —‘˜c 1Ó% aÑ(ˆØ×3Ñ3°F¸FÓCÑˆ�	ØˆØ�$‰;ØŸ™ C¨Ó+‰IˆD�#ÙÜ'Ø˜s˜gð &0ð 0óð ô
 �l‰l×%Ñ% v¨v°t¸UÀBÐ&GÓHˆØ�C˜Ð"Ð"r.   ÚusernameÚpasswordc                 ó   — g S )zM
        Return the RevOptions "extra arguments" to use in obtain().
        rM   )rÚ   rÛ   s     r,   Úmake_rev_argszVersionControl.make_rev_args˜  s	   € ð ˆ	r.   c                 óÌ   — | j                  |j                  «      \  }}}|\  }}d}|�t        |«      }| j                  ||«      }| j	                  ||¬«      }	t        |«      |	fS )zq
        Return the URL and RevOptions object to use in obtain(),
        as a tuple (url, rev_options).
        Nrs   )rÙ   Úsecretr   rÝ   rt   r   )
rU   rP   Ú
secret_urlr0   rØ   rÚ   Úsecret_passwordrÛ   r`   Úrev_optionss
             r,   Úget_url_rev_optionsz"VersionControl.get_url_rev_options¡  su   € ð
 &*×%>Ñ%>¸s¿z¹zÓ%JÑ"ˆ
�C˜Ø$-Ñ!ˆ�/Ø)-ˆØÐ&Ü! /Ó2ˆHØ×'Ñ'¨°(Ó;ˆ
Ø×+Ñ+¨C¸JÐ+ÓGˆä˜
Ó# [Ð0Ð0r.   c                 ó^   — t         j                  j                  | «      j                  d«      S )zi
        Normalize a URL for comparison by unquoting it and removing any
        trailing slash.
        ú/)r'   r(   ÚunquoteÚrstrip)rP   s    r,   Únormalize_urlzVersionControl.normalize_url°  s$   € ô �|‰|×#Ñ# CÓ(×/Ñ/°Ó4Ð4r.   Úurl1Úurl2c                 óH   — | j                  |«      | j                  |«      k(  S )zV
        Compare two repo URLs for identity, ignoring incidental differences.
        )rè   )r�   ré   rê   s      r,   Úcompare_urlszVersionControl.compare_urls¸  s%   € ð
 × Ñ  Ó&¨#×*;Ñ*;¸DÓ*AÑAÐAr.   râ   Ú	verbosityc                 ó   — t         ‚)a  
        Fetch a revision from a repository, in the case that this is the
        first fetch from the repository.

        Args:
          dest: the directory to fetch the repository to.
          rev_options: a RevOptions object.
          verbosity: verbosity level.
        r½   )rU   rÀ   rP   râ   rí   s        r,   Ú	fetch_newzVersionControl.fetch_new¿  s
   € ô "Ð!r.   c                 ó   — t         ‚)z}
        Switch the repo at ``dest`` to point to ``URL``.

        Args:
          rev_options: a RevOptions object.
        r½   ©rU   rÀ   rP   râ   s       r,   ÚswitchzVersionControl.switchÍ  ó
   € ô "Ð!r.   c                 ó   — t         ‚)zŠ
        Update an already-existing repo to the given ``rev_options``.

        Args:
          rev_options: a RevOptions object.
        r½   rñ   s       r,   ÚupdatezVersionControl.updateÖ  ró   r.   r    c                 ó   — t         ‚)z¬
        Return whether the id of the current commit equals the given name.

        Args:
          dest: the repository directory.
          name: a string name.
        r½   )r�   rÀ   r    s      r,   Úis_commit_id_equalz!VersionControl.is_commit_id_equalß  s
   € ô "Ð!r.   c                 óÂ  — | j                  |«      \  }}t        j                  j                  |«      s| j	                  ||||¬«       y|j                  «       }| j                  |«      �r| j                  |«      }| j                  ||j                  «      rªt        j                  d| j                  j                  «       t        |«      |«       | j                  ||j                   «      s?t        j#                  dt        |«      | j                  |«       | j%                  |||«       yt        j#                  d«       yt        j'                  d| j(                  | j                  t        |«      |«       d}n.t        j'                  d|| j(                  | j                  «       d	}t        j'                  d
| j(                  |«       t+        d|d   › �|d   «      }|dk(  rt-        j.                  d«       |dk(  r@t        j'                  dt        |«      «       t1        |«       | j	                  ||||¬«       y|dk(  rWt3        |«      }	t        j'                  dt        |«      |	«       t5        j6                  ||	«       | j	                  ||||¬«       y|dk(  r@t        j#                  d| j                  t        |«      ||«       | j9                  |||«       yy)a/  
        Install or update in editable mode the package represented by this
        VersionControl object.

        :param dest: the repository directory in which to install or update.
        :param url: the repository URL starting with a vcs prefix.
        :param verbosity: verbosity level.
        )rí   Nz)%s in %s exists, and has correct URL (%s)zUpdating %s %s%sz$Skipping because already up-to-date.z%s %s in %s exists with URL %s)z%(s)witch, (i)gnore, (w)ipe, (b)ackup )ÚsÚiÚwÚbz0Directory %s already exists, and is not a %s %s.)z(i)gnore, (w)ipe, (b)ackup )rú   rû   rü   z+The plan is to install the %s repository %szWhat to do?  r   rÑ   Úaéÿÿÿÿrû   zDeleting %srü   zBacking up %s to %srù   zSwitching %s %s to %s%s)rã   r>   r?   Úexistsrï   rq   Úis_repository_directoryr¹   rì   rß   rA   r“   Ú	repo_nameÚtitler   r÷   r0   Úinforõ   rB   r    r   ÚsysÚexitr   r   ÚshutilÚmoverò   )
rU   rÀ   rP   rí   râ   Úrev_displayÚexisting_urlÚpromptÚresponseÚdest_dirs
             r,   ÚobtainzVersionControl.obtainê  sr  € ð  ×3Ñ3°CÓ8Ñˆˆ[ä�w‰w�~‰~˜dÔ#Ø�N‰N˜4  k¸YˆNÔGØà!×,Ñ,Ó.ˆØ×'Ñ'¨Õ-Ø×.Ñ.¨tÓ4ˆLØ× Ñ  ¨s¯z©zÔ:Ü—‘Ø?Ø—N‘N×(Ñ(Ó*Ü  Ó&Øô	ð ×.Ñ.¨t°[·_±_ÔEÜ—K‘KØ*Ü$ TÓ*ØŸ™Ø#ô	ð —K‘K  c¨;Ô7ð ô —K‘KÐ FÔGØä�N‰NØ0Ø—	‘	Ø—‘Ü˜TÓ"Øôð U‰Fä�N‰NØBØØ—	‘	Ø—‘ô	ð FˆFä�‰Ø9Ø�I‰IØô	
ô
 # ]°6¸!±9°+Ð#>ÀÀqÁ	ÓJˆà�sŠ?Ü�H‰H�RŒLà�sŠ?Ü�N‰N˜=¬,°tÓ*<Ô=Ü�4ŒLØ�N‰N˜4  k¸YˆNÔGØà�sŠ?Ü! $Ó'ˆHÜ�N‰NÐ0´,¸tÓ2DÀhÔOÜ�K‰K˜˜hÔ'Ø�N‰N˜4  k¸YˆNÔGØð �sŠ?Ü�K‰KØ)Ø—‘Ü˜TÓ"ØØôð �K‰K˜˜c ;Õ/ð r.   c                 ó€   — t         j                  j                  |«      rt        |«       | j	                  |||¬«       y)zà
        Clean up current location and download the url repository
        (and vcs infos) into location

        :param url: the repository URL starting with a vcs prefix.
        :param verbosity: verbosity level.
        )rP   rí   N)r>   r?   rÿ   r   r  )rU   r;   rP   rí   s       r,   ÚunpackzVersionControl.unpackC  s.   € ô �7‰7�>‰>˜(Ô#Ü�8ÔØ�‰�H #°ˆÕ;r.   c                 ó   — t         ‚)z–
        Return the url used at location

        Raises RemoteNotFoundError if the repository does not have a remote
        url configured.
        r½   r±   s     r,   r¹   zVersionControl.get_remote_urlO  r¿   r.   c                 ó   — t         ‚)zR
        Return the current commit id of the files at the given location.
        r½   r±   s     r,   rµ   zVersionControl.get_revisionY  s
   € ô
 "Ð!r.   ÚcmdÚshow_stdoutÚcwdÚon_returncodez"Literal["raise", "warn", "ignore"]Úextra_ok_returncodesÚcommand_descÚextra_environÚspinnerÚlog_failed_cmdÚstdout_onlyc                 ót  — t        | j                  g|¢­Ž }|€t        |«      }	 t        |||||||| j                  ||	|
¬«      S # t
        $ r t        d| j                  ›d�«      ‚t        $ r' t        d| j                  ›d| j                  ›d�«      ‚t        $ r t        d| j                  ›d�«      ‚w xY w)z«
        Run a VCS subcommand
        This is simply a wrapper around call_subprocess that adds the VCS
        command name, and checks that the VCS is available
        )r  r  r  r  rª   r  r  r  zCannot find command z - invalid PATHz - do you have z installed and in your PATH?zNo permission to execute z¨ - install it locally, globally (ask admin), or check your PATH. See possible solutions at https://pip.pypa.io/en/latest/reference/pip_freeze/#fixing-permission-denied.)	r   r    r   r   rª   ÚNotADirectoryErrorr   ÚFileNotFoundErrorÚPermissionError)r�   r  r  r  r  r  r  r  r  r  r  s              r,   Úrun_commandzVersionControl.run_command`  sî   € ô& ˜3Ÿ8™8Ð* cÒ*ˆØÐÜ.¨sÓ3ˆLð"	Ü"ØØØØ+Ø%9Ø)Ø+Ø!×/Ñ/ØØ-Ø'ôð øô "ò 	QÜÐ3°C·H±H°<¸ÐOÓPÐPÜ ò 	ô Ø& s§x¡x l°/Ø—8‘8�,Ð:ð<óð ô ò 	ô
 Ø+¨C¯H©H¨<ð 8-ð .óð ð	ús   ¥A ÁA2B7r?   c                 óè   — t         j                  d|| j                  | j                  «       t        j
                  j                  t        j
                  j                  || j                  «      «      S )zL
        Return whether a directory path is a repository directory.
        zChecking in %s for %s (%s)...)rA   r“   r@   r    r>   r?   rÿ   Újoin)r�   r?   s     r,   r   z&VersionControl.is_repository_directoryš  sE   € ô
 	�‰Ð4°d¸C¿K¹KÈÏÉÔRÜ�w‰w�~‰~œbŸg™gŸl™l¨4°·±Ó=Ó>Ð>r.   c                 ó*   — | j                  |«      r|S y)ay  
        Return the "root" (top-level) directory controlled by the vcs,
        or `None` if the directory is not in any.

        It is meant to be overridden to implement smarter detection
        mechanisms for specific vcs.

        This can do more than is_repository_directory() alone. For
        example, the Git override checks that Git is actually available.
        N)r   r±   s     r,   rš   z"VersionControl.get_repository_root¢  s   € ð ×&Ñ& xÔ0ØˆOØr.   rÎ   )	TNÚraiseNNNNTF)4rJ   rK   rL   r    r@   r  r†   r   rW   rw   rª   rg   r   ÚclassmethodrÈ   r¯   r²   r¶   r»   Ústaticmethodr	   rj   rÂ   r   r\   rt   rË   rÏ   ÚAuthInforÙ   r   rÝ   rã   rè   rì   Úintrï   rò   rõ   r÷   r  r  r¹   rµ   r   r   r   r   r   r   r   rš   rM   r.   r,   r]   r]   ÿ   sÔ  … Ø€DØ€GØ€Ià!€GˆU�3˜�8‰_Ó!à%'€M�5˜˜c˜‘?Ó'Ø%)€O�X˜c‘]Ó)àðA°3ð A¸4ò Aó ðAð ð¨ð °¸±ò ó ðð ð*°ð *¸ò *ó ð*ð ð¨3ð ¸cð Àcò ó ðð. ð"˜sð " t¨C¡yò "ó ð"ð¨Sð ¸ð Àó ð àLPñ
AØ˜3‘-ð
AØ4<¸[Ñ4Ið
Aà	ò
Aó ð
Að ð;¨ð ;°ò ;ó ð;ð ð$Øð$Ø"%ð$à	ˆs�E˜( 3™-¨°#©Ð6Ñ7Ð7Ñ	8ò$ó ð$ð( ð# sð #¨u°S¸(À3¹-ÈÐ5QÑ/Rò #ó ð#ð: ðØ˜3‘-ðØ+3°JÑ+?ðà	òó ðð1 zð 1°e¸JÈ
Ð<RÑ6Só 1ð ð5˜3ð 5 3ò 5ó ð5ð ðB ð B¨3ð B°4ò Bó ðBð"Øð"Ø(ð"Ø7Að"ØNQð"à	ó"ð"˜3ð " Zð "¸jð "ÈTó "ð"˜3ð " Zð "¸jð "ÈTó "ð ð" cð "°¸#±ð "À4ò "ó ð"ðW0˜3ð W0 Zð W0¸Cð W0ÀDó W0ðr
<˜sð 
<¨ð 
<Àð 
<Èó 
<ð ð" cð "¨cò "ó ð"ð ð" Cð "¨Cò "ó ð"ð ð !Ø!Ø>EØ8<Ø&*Ø59Ø.2Ø#Ø!ñ7à�4˜‘9˜kÐ)Ñ*ð7ð ð7ð �c‰]ð	7ð
 <ð7ð ' x°¡}Ñ5ð7ð ˜s‘mð7ð   ¨¨S¨Ñ 1Ñ2ð7ð Ð*Ñ+ð7ð ð7ð ð7ð 
ò7ó ð7ðr ð?¨3ð ?°4ò ?ó ð?ð ð¨3ð °8¸C±=ò ó ñr.   r]   rR   ):rv   Úloggingr>   r  r  Úurllib.parser'   Údataclassesr   r   Útypingr   r   r   r   r	   r
   r   r   r   r   r   Úpip._internal.cli.spinnersr   Úpip._internal.exceptionsr   r   Úpip._internal.utils.miscr   r   r   r   r   r   r   r   Úpip._internal.utils.subprocessr   r   r   r   Ú__all__Ú	getLoggerrJ   rA   rW   r'  rÈ   r-   r:   rG   Ú	ExceptionrI   rO   r\   r{   r   r]   rM   r.   r,   ú<module>r4     sN  ðÙ /ã Û 	Û Û 
Û ß (÷÷ ÷ ñ õ 8ß B÷	÷ 	ó 	÷ó ð ˆ'€ð 
ˆ×	Ñ	˜8Ó	$€à�˜#‘ ¨¡Ð-Ñ.€ðH�ð H˜ó Hð IMñØðØðØ+.ðØ8@À¹ðàóð$0Øð0Ø!ð0àˆc�]ó0ô:	˜)ô 	ô˜)ô ñ �$Ô÷3Oð 3Oó ð3O÷lM(ñ M(ñ` ƒl€÷qò qr.   