GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 172.67.177.218  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3.8/site-packages/pip/_internal/vcs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.8/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-38.pyc
U

��.e~S�@s�dZddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddl
mZddlmZddlmZmZmZmZmZmZdd	lmZmZdd
lmZddlmZe�rddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)dd
l*m+Z+ddlm,Z,ddlm-Z-e'e%e.e%e.fZ/dgZ0e�1e2�Z3dd�Z4ddd�Z5dd�Z6Gdd�de7�Z8Gdd�de9�Z:Gdd�de9�Z;e;�Z<Gdd�de9�Z=dS) z)Handles all VCS (version control) support�)�absolute_importN)�
pkg_resources)�parse)�
BadCommand)�samefile)�ask_path_exists�
backup_dir�display_path�hide_url�
hide_value�rmtree)�call_subprocess�make_command)�MYPY_CHECK_RUNNING)�get_url_scheme)
�Any�Dict�Iterable�List�Mapping�Optional�Text�Tuple�Type�Union)�SpinnerInterface)�
HiddenText)�CommandArgs�vcscCs*t|�}|dkrdS|ddddgtjkS)z3
    Return true if the name looks like a URL.
    NFZhttpZhttps�fileZftp)rr�all_schemes)�name�scheme�r#�D/usr/lib/python3.8/site-packages/pip/_internal/vcs/versioncontrol.py�is_url0sr%cCs.t�|�}d�|||�}|r*|d�|�7}|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={})rZto_filename�format)�repo_url�rev�project_name�subdirZegg_project_name�reqr#r#r$�make_vcs_requirement_url;s

r,cCs`|}tj�tj�|d��sD|}tj�|�}||krt�d|�dSqt||�rRdStj�||�S)z�
    Find the path to `setup.py` by searching up the filesystem from `location`.
    Return the path to `setup.py` relative to `repo_root`.
    Return None if `setup.py` is in `repo_root` or cannot be found.
    zsetup.pyzGCould not find setup.py for directory %s (tried all parent directories)N)	�os�path�exists�join�dirname�logger�warningr�relpath)�locationZ	repo_rootZ
orig_locationZ
last_locationr#r#r$�!find_path_to_setup_from_repo_rootKs�
r6c@seZdZdS)�RemoteNotFoundErrorN)�__name__�
__module__�__qualname__r#r#r#r$r7fsr7c@sFeZdZdZddd�Zdd�Zedd��Zd	d
�Zdd�Z	d
d�Z
dS)�
RevOptionsz�
    Encapsulates a VCS-specific revision to install, along with any VCS
    install options.

    Instances of this class should be treated as if immutable.
    NcCs(|dkrg}||_||_||_d|_dS)z�
        Args:
          vc_class: a VersionControl subclass.
          rev: the name of the revision to install.
          extra_args: a list of extra options.
        N)�
extra_argsr(�vc_classZbranch_name)�selfr=r(r<r#r#r$�__init__ss
zRevOptions.__init__cCsd�|jj|j�S)Nz<RevOptions {}: rev={!r}>)r&r=r!r(�r>r#r#r$�__repr__�szRevOptions.__repr__cCs|jdkr|jjS|jS�N)r(r=�default_arg_revr@r#r#r$�arg_rev�s
zRevOptions.arg_revcCs0g}|j}|dk	r"||j�|�7}||j7}|S)z<
        Return the VCS-specific command arguments.
        N)rDr=�get_base_rev_argsr<)r>�argsr(r#r#r$�to_args�s
zRevOptions.to_argscCs|js
dSd�|j�S)N�z (to revision {}))r(r&r@r#r#r$�
to_display�szRevOptions.to_displaycCs|jj||jd�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<)r>r(r#r#r$�make_new�szRevOptions.make_new)NN)r8r9r:�__doc__r?rA�propertyrDrGrIrLr#r#r#r$r;js
�


r;cs|eZdZiZddddddgZ�fdd�Zd	d
�Zedd��Zed
d��Z	edd��Z
dd�Zdd�Zdd�Z
dd�Z�ZS)�
VcsSupportZsshZgitZhgZbzrZsftpZsvncs:tj�|j�ttdd�r(tj�|j�tt|���dS)N�
uses_fragment)	�urllib_parseZuses_netloc�extend�schemes�getattrrP�superrOr?r@��	__class__r#r$r?�szVcsSupport.__init__cCs
|j��SrB)�	_registry�__iter__r@r#r#r$rY�szVcsSupport.__iter__cCst|j���SrB)�listrX�valuesr@r#r#r$�backends�szVcsSupport.backendscCsdd�|jD�S)NcSsg|]
}|j�qSr#)r1)�.0�backendr#r#r$�
<listcomp>�sz'VcsSupport.dirnames.<locals>.<listcomp>)r\r@r#r#r$�dirnames�szVcsSupport.dirnamescCs g}|jD]}|�|j�q
|SrB)r\rRrS)r>rSr^r#r#r$r �s
zVcsSupport.all_schemescCsHt|d�st�d|j�dS|j|jkrD|�|j|j<t�d|j�dS)Nr!zCannot register VCS %szRegistered VCS backend: %s)�hasattrr2r3r8r!rX�debug)r>�clsr#r#r$�register�s
zVcsSupport.registercCs||jkr|j|=dSrB)rX�r>r!r#r#r$�
unregister�s
zVcsSupport.unregistercCs6|j��D]&}|�|�r
t�d||j�|Sq
dS)zv
        Return a VersionControl object if a repository of that type is found
        at the given directory.
        zDetermine that %s uses VCS: %sN)rXr[�controls_locationr2rbr!)r>r5Zvcs_backendr#r#r$�get_backend_for_dir�s
�
zVcsSupport.get_backend_for_dircCs|��}|j�|�S)z9
        Return a VersionControl object or None.
        )�lowerrX�getrer#r#r$�get_backend�szVcsSupport.get_backend)r8r9r:rXrSr?rYrNr\r`r rdrfrhrk�
__classcell__r#r#rVr$rO�s



	
rOc	@s8eZdZdZdZdZdZdZdZe	dd��Z
e	dd��Ze	dd	��Ze	d
d��Z
edd
��Ze	d8dd��Ze	dd��Zdd�Ze	dd��Ze	dd��Zedd��Zdd�Zedd��Ze	dd��Zd d!�Zd"d#�Zd$d%�Ze	d&d'��Zd(d)�Zd*d+�Ze	d,d-��Ze	d.d/��Z e	d9d2d3��Z!e	d4d5��Z"e	d6d7��Z#dS):�VersionControlrHr#NcCs|���d�|j��S)z�
        Return whether the vcs prefix (e.g. "git+") should be added to a
        repository's remote url when used in a requirement.
        z{}:)ri�
startswithr&r!)rcZ
remote_urlr#r#r$�should_add_vcs_url_prefixsz(VersionControl.should_add_vcs_url_prefixcCsdS)z~
        Return the path to setup.py, relative to the repo root.
        Return None if setup.py is in the repo root.
        Nr#�rcr5r#r#r$�get_subdirectoryszVersionControl.get_subdirectorycCs
|�|�S)zR
        Return the revision string that should be used in a requirement.
        )�get_revision)rc�repo_dirr#r#r$�get_requirement_revisionsz'VersionControl.get_requirement_revisioncCsV|�|�}|dkrdS|�|�r.d�|j|�}|�|�}|�|�}t||||d�}|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}
        Nz{}+{})r*)�get_remote_urlror&r!rtrqr,)rcrsr)r'Zrevisionr*r+r#r#r$�get_src_requirements



�z"VersionControl.get_src_requirementcCst�dS)z�
        Return the base revision arguments for a vcs command.

        Args:
          rev: the name of a revision to install.  Cannot be None.
        N��NotImplementedError)r(r#r#r$rE8sz VersionControl.get_base_rev_argscCst|||d�S)z�
        Return a RevOptions object.

        Args:
          rev: the name of a revision to install.
          extra_args: a list of extra options.
        rJ)r;)rcr(r<r#r#r$rKBs
zVersionControl.make_rev_optionscCs&tj�|�\}}|�tjj�p$t|�S)zy
           posix absolute paths start with os.path.sep,
           win32 ones start with drive (like c:\folder)
        )r-r.�
splitdrivern�sep�bool)rcZrepoZdrive�tailr#r#r$�_is_local_repositoryNsz#VersionControl._is_local_repositorycCst�dS)z�
        Export the repository at the url to the destination location
        i.e. only download the files, without vcs informations

        :param url: the repository URL starting with a vcs prefix.
        Nrw�r>r5�urlr#r#r$�exportXszVersionControl.exportcCs|dfS)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)).
        )NNr#)rc�netlocr"r#r#r$�get_netloc_and_authbsz"VersionControl.get_netloc_and_authc	Cs�t�|�\}}}}}d|kr*td�|���|�dd�d}|�||�\}}d}d|krf|�dd�\}}t�||||df�}|||fS)z�
        Parse the repository URL to use, and return the URL, revision,
        and auth info to use.

        Returns: (url, rev, (username, password)).
        �+zvSorry, {!r} is a malformed VCS url. The format is <vcs>+<protocol>://<url>, e.g. svn+http://myrepo/svn/MyApp#egg=MyApp�N�@rH)rQZurlsplit�
ValueErrorr&�splitr��rsplitZ
urlunsplit)	rcrr"r�r.ZqueryZfrag�	user_passr(r#r#r$�get_url_rev_and_authus	��z#VersionControl.get_url_rev_and_authcCsgS)zM
        Return the RevOptions "extra arguments" to use in obtain().
        r#)�username�passwordr#r#r$�
make_rev_args�szVersionControl.make_rev_argsc
CsT|�|j�\}}}|\}}d}|dk	r.t|�}|�||�}|j||d�}	t|�|	fS)z�
        Return the URL and RevOptions object to use in obtain() and in
        some cases export(), as a tuple (url, rev_options).
        NrJ)r��secretrr�rKr
)
r>rZ
secret_urlr(r�r�Zsecret_passwordr�r<�rev_optionsr#r#r$�get_url_rev_options�sz"VersionControl.get_url_rev_optionscCst�|��d�S)zi
        Normalize a URL for comparison by unquoting it and removing any
        trailing slash.
        �/)rQZunquote�rstrip�rr#r#r$�
normalize_url�szVersionControl.normalize_urlcCs|�|�|�|�kS)zV
        Compare two repo URLs for identity, ignoring incidental differences.
        )r�)rcZurl1Zurl2r#r#r$�compare_urls�szVersionControl.compare_urlscCst�dS)z�
        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.
        Nrw�r>�destrr�r#r#r$�	fetch_new�s
zVersionControl.fetch_newcCst�dS)z}
        Switch the repo at ``dest`` to point to ``URL``.

        Args:
          rev_options: a RevOptions object.
        Nrwr�r#r#r$�switch�szVersionControl.switchcCst�dS)z�
        Update an already-existing repo to the given ``rev_options``.

        Args:
          rev_options: a RevOptions object.
        Nrwr�r#r#r$�update�szVersionControl.updatecCst�dS)z�
        Return whether the id of the current commit equals the given name.

        Args:
          dest: the repository directory.
          name: a string name.
        Nrw)rcr�r!r#r#r$�is_commit_id_equal�s	z!VersionControl.is_commit_id_equalc	Cs�|�|�\}}tj�|�s,|�|||�dS|��}|�|�r�|�|�}|�||j	�r�t
�d|j�
�t|�|�|�||j�s�t
�dt|�|j|�|�|||�n
t
�d�dSt
�d|j|jt|�|�d}nt
�d||j|j�d}t
�d	|j|�td
|d|d�}|d
k�r$t�d�|dk�rXt
�dt|��t|�|�|||�dS|dk�r�t|�}t
�dt|�|�t�||�|�|||�dS|dk�r�t
�d|jt|�||�|�|||�dS)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.
        Nz)%s in %s exists, and has correct URL (%s)zUpdating %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 %szWhat to do?  %srr��a���r�zDeleting %sr�zBacking up %s to %sr�zSwitching %s %s to %s%s)r�r-r.r/r�rI�is_repository_directoryrur�r�r2rb�	repo_name�titler	r�r(�infor�r3r!r�sys�exitrr�shutilZmover�)	r>r�rr�Zrev_displayZexisting_url�promptZresponseZdest_dirr#r#r$�obtain�s�	

��
���



�
�zVersionControl.obtaincCs&tj�|�rt|�|j||d�dS)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.
        r�N)r-r.r/rr�r~r#r#r$�unpack?szVersionControl.unpackcCst�dS)z�
        Return the url used at location

        Raises RemoteNotFoundError if the repository does not have a remote
        url configured.
        Nrwrpr#r#r$ruKszVersionControl.get_remote_urlcCst�dS)zR
        Return the current commit id of the files at the given location.
        Nrwrpr#r#r$rrUszVersionControl.get_revisionT�raisec
Cs|t|jf|��}z t||||||||j||	d�
WStk
rv}
z(|
jtjkrdtd|j|jf��n�W5d}
~
XYnXdS)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
        )�
on_returncode�extra_ok_returncodes�command_desc�
extra_environ�
unset_environ�spinner�log_failed_cmdzCCannot find command %r - do you have %r installed and in your PATH?N)rr!r
r��OSError�errnoZENOENTr)rc�cmdZshow_stdout�cwdr�r�r�r�r�r��er#r#r$�run_command\s&�
��zVersionControl.run_commandcCs,t�d||j|j�tj�tj�||j��S)zL
        Return whether a directory path is a repository directory.
        zChecking in %s for %s (%s)...)r2rbr1r!r-r.r/r0)rcr.r#r#r$r��s�z&VersionControl.is_repository_directorycCs
|�|�S)a6
        Check if a location is controlled by the vcs.
        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.
        )r�rpr#r#r$rg�sz VersionControl.controls_location)NN)TNr�NNNNT)$r8r9r:r!r1r�rSr�rC�classmethodrorqrtrv�staticmethodrErKr}r�r�r�r�r�r�r�r�r�r�r�r�r�rurrr�r�rgr#r#r#r$rm�sr




	
	









]
	
�'
	rm)N)>rMZ
__future__rr�Zloggingr-r�r�Zpip._vendorrZpip._vendor.six.moves.urllibrrQZpip._internal.exceptionsrZpip._internal.utils.compatrZpip._internal.utils.miscrrr	r
rrZpip._internal.utils.subprocessr
rZpip._internal.utils.typingrZpip._internal.utils.urlsr�typingrrrrrrrrrrZpip._internal.utils.uirrr�strZAuthInfo�__all__Z	getLoggerr8r2r%r,r6�	Exceptionr7�objectr;rOrrmr#r#r#r$�<module>s< 0

HG

Youez - 2016 - github.com/yon3zu
LinuXploit