
    6hY
                        S SK Jr  S SKrS SKJr  S SKJrJrJr  S SK	J
r
  SSKJrJrJr  SS jr\R                  /\R                  /\R                  /\R                  /S	.r\R"                  " S
5      rS rg)    )annotationsN)_)errorhgutil)urlutil   )lfutil
localstore	wirestorec                   Uc  U R                   nU(       d  [        U SS 5      nU(       a  [        R                  " SXU5      nO[        R                  " SX45      nU c:  [        R                  " SUS5      n[
        R                  " U =(       d    U0 U5      nODUR                  S:X  d  UR                  S:X  a  U nO![
        R                  " U =(       d    U0 U5      n[        US5      =(       a    UR                  5       =(       d    UR                  n[        R                  U5      nU(       d  SnOUR                  S5      n [        U   nU H  n	 U	" X0U5      s  $    [         R"                  " [%        S
5      [        R*                  " U5      -  5      e! [         a#    [         R"                  " [%        S	5      U-  5      ef = f! [&        R(                   a     M  f = f)Nlfpullsources   lfpullsources   lfss   defaults   default-pushurl   filer	   s   unsupported URL scheme %rs*   %s does not appear to be a largefile store)uigetattrr   get_unique_push_pathget_unique_pull_path_objr   peerlochasattrr   path
_scheme_rematchgroup_storeproviderKeyErrorr   Abortr   r
   storeprotonotcapablehidepassword)
reporemoteputr   r   r   r   schemestoreprovidersclassobjs
             ?/usr/lib/python3/dist-packages/hgext/largefiles/storefactory.py	openstorer(      s   	zWWt^T://<D 33D <33D
 WWTZRT2FXX(DHH
,BFWWTZRT2F 65!2fjjlAfkkDT"EQD'/ #	Bf-- # ++	
78


t
$	%   Dkk!89FBCCD ** 		s   	F G-GGG)r   s   https   httpss   sshs   ^([a-zA-Z0-9+-.]+)://c                Z    [         R                  " [        U S9R                  U5      5      $ )N)r   )r   chunkbufferr(   _get)r   hashs     r'   getlfiler-   _   s#    I,11$788    )NNFN)
__future__r   remercurial.i18nr   	mercurialr   r   r   mercurial.utilsr    r
   r   r   r(   r   compiler   r-    r.   r'   <module>r7      s~    # 	  
 6t ##$!!"""#  !	 ZZ12
9r.   