ó
    6°h‘F  ã                  ó.  • S r SSKJr  SSKrSSKJrJrJrJrJ	r	J
r
  SSKJr  S�S jr " S S	5      r " S
 S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S  S!\5      r " S" S#\5      r " S$ S%\5      r " S& S'\5      r  " S( S)\ 5      r! " S* S+\5      r" " S, S-\5      r# " S. S/\5      r$ " S0 S1\5      r% " S2 S3\5      r& " S4 S5\5      r' " S6 S7\5      r( " S8 S9\5      r) " S: S;\5      r* " S< S=\*5      r+ " S> S?\*5      r, " S@ SA\5      r- " SB SC\5      r. " SD SE\.5      r/ " SF SG\5      r0 " SH SI\5      r1 " SJ SK\15      r2 " SL SM\15      r3S‘SN jr4S’SO jr5 " SP SQ\05      r6 " SR SS\\5      r7 " ST SU\75      r8 " SV SW\85      r9 " SX SY\75      r: " SZ S[\75      r; " S\ S]\<5      r= " S^ S_\5      r> " S` Sa\5      r? " Sb Sc\<5      r@ " Sd Se\@5      rA " Sf Sg\@5      rB " Sh Si\C5      rD " Sj Sk\5      rE " Sl Sm\F5      rG " Sn So\5      rH " Sp Sq\C5      rI " Sr Ss\\C5      rJ " St Su\5      rK " Sv Sw\L5      rM " Sx Sy\M5      rN " Sz S{\C5      rO " S| S}\5      rP " S~ S\5      rQ " S€ S�\5      rR " S‚ Sƒ\5      rS " S„ S…\5      rT " S† S‡\5      rU " Sˆ S‰\5      rV " SŠ S‹\5      rW " SŒ S�\5      rX " SŽ S�\5      rYg)“zdMercurial exceptions.

This allows us to catch exceptions at higher levels without forcing
imports.
é    )ÚannotationsN)ÚAnyStrÚIterableÚListÚOptionalÚSequenceÚUnioné   )Úpycompatc                óè   • U R                   (       d  g[        U R                   5      S:X  a#  [        R                  " U R                   S   5      $ SSR	                  S U R                    5       5      -  $ )z?Byte-stringify exception in the same way as BaseException_str()ó    r
   r   s   (%s)ó   , c              3  óT   #   • U  H  nS [         R                  " U5      -  v •  M      g7f)s   '%s'N)r   Úbytestr)Ú.0Úas     Ú1/usr/lib/python3/dist-packages/mercurial/error.pyÚ	<genexpr>Ú_tobytes.<locals>.<genexpr>%   s    é € ÐPÂxÀ! ¬(×*:Ò*:¸1Ó*=Ö =Âxùs   ‚&()ÚargsÚlenr   r   Újoin)Úexcs    r   Ú_tobytesr      sS   € à�8�8ØÜ
ˆ3�8‰8ƒ}˜ÓÜ×Ò §¡¨¡Ó,Ð,Ø�U—Z‘ZÑPÀsÇxÂxÓPÓPÑPÐPr   c                  ó,   ^ • \ rS rSrSrU 4S jrSrU =r$ )ÚHinté(   zœMix-in to provide a hint of an error

This should come first in the inheritance list to consume a hint and
pass remaining arguments to the exception class.
c                óT   >• UR                  SS 5      U l        [        TU ]  " U0 UD6  g )NÚhint)Úpopr   ÚsuperÚ__init__)Úselfr   ÚkwÚ	__class__s      €r   r"   ÚHint.__init__/   s'   ø€ Ø%'§V¡V¨F°DÓ%9ˆŒ	Ü‰Ò˜$Ð% "Ó%r   ©r   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r"   Ú__static_attributes__Ú__classcell__©r%   s   @r   r   r   (   s   ø† ñ÷&ó &r   r   c                  óH   • \ rS rSrSrSrSrS	S
S jjrS rSS jr	SS jr
Srg)ÚErroré4   z Base class for Mercurial errors.Nc                óF   • Xl         X l        [        R                  X5        g ©N)Úmessager   Ú	Exceptionr"   )r#   r6   r   s      r   r"   ÚError.__init__:   s   € ØŒØŒ	ô 	×Ñ˜4Õ)r   c                ó   • U R                   $ r5   )r6   ©r#   s    r   Ú	__bytes__ÚError.__bytes__A   s   € Ø�|‰|Ðr   c                óJ   • [         R                  " U R                  5       5      $ r5   )r   Úsysstrr;   r:   s    r   Ú__str__ÚError.__str__D   s   € ô �Š˜tŸ~™~Ó/Ó0Ð0r   c                óŒ   • SSK Jn  U" S5      U R                  -  nU R                  (       a  X!" S5      U R                  -  -  nU$ )Nr
   ©Ú_s
   abort: %s
ó   (%s)
©Úi18nrC   r6   r   ©r#   rC   r6   s      r   ÚformatÚError.formatJ   s;   € Ýá�NÓ# d§l¡lÑ2ˆØ�9�9Ø�q˜“| d§i¡iÑ/Ñ/ˆGØˆr   )r   r6   r5   )r6   Úbytesr   úOptional[bytes]ÚreturnÚNone)rL   Ústr©rL   rJ   )r)   r*   r+   r,   r-   Úcoarse_exit_codeÚdetailed_exit_coder"   r;   r?   rH   r.   © r   r   r2   r2   4   s%   † Ù*àÐØÐö*òô1÷r   r2   c                  ó   • \ rS rSrSrSrg)ÚAbortéS   z5Raised if a command needs to print an error and exit.rR   N©r)   r*   r+   r,   r-   r.   rR   r   r   rT   rT   S   s   † Ü?r   rT   c                  ó   • \ rS rSrSrSrSrg)ÚStorageErroréW   zeRaised when an error occurs in a storage layer.

Usually subclassed by a storage-specific exception.
é2   rR   N©r)   r*   r+   r,   r-   rQ   r.   rR   r   r   rX   rX   W   ó   † ñð
 Ór   rX   c                  ó   • \ rS rSrSrg)ÚRevlogErroré`   rR   N©r)   r*   r+   r,   r.   rR   r   r   r^   r^   `   ó   † Úr   r^   c                  ó   • \ rS rSrSS jrSrg)ÚSidedataHashErroréd   c                ó6   • S U l         Xl        X l        X0l        g r5   )r   ÚsidedatakeyÚexpecteddigestÚactualdigest)r#   ÚkeyÚexpectedÚgots       r   r"   ÚSidedataHashError.__init__e   s   € ØˆŒ	ØÔØ&ÔØÕr   )rh   rg   r   rf   N)ri   Úintrj   rJ   rk   rJ   rL   rM   ©r)   r*   r+   r,   r"   r.   rR   r   r   rc   rc   d   s   † ÷ r   rc   c                  ó   • \ rS rSr\rSrg)ÚFilteredIndexErrorél   rR   N©r)   r*   r+   r,   r   r;   r.   rR   r   r   rp   rp   l   ó   † ØƒIr   rp   c                  ó*   • \ rS rSrSS jrS rS rSrg)ÚLookupErrorép   c                óì   • Xl         X l        X0l        [        U[        5      (       a  [        U5      S:X  a  SSKJn  U" U5      n[        R                  U SU[        R                  " U5      U4-  5        g )Né   r
   )Úhexs	   %s@%s: %s)ÚnameÚindexÚlookupmessageÚ
isinstancerJ   r   Únodery   r^   r"   r   r   )r#   rz   r{   r6   ry   s        r   r"   ÚLookupError.__init__q   sa   € ØŒ	ØŒ
ð %ÔÜ�dœE×"Ñ"¤s¨4£y°B£Ý!á�t“9ˆDä×ÑØ�, %¬×)9Ò)9¸$Ó)?ÀÐ!IÑIõ	
r   c                ó,   • [         R                  U 5      $ r5   )r^   r;   r:   s    r   r;   ÚLookupError.__bytes__€   s   € Ü×$Ñ$ TÓ*Ð*r   c                ó,   • [         R                  U 5      $ r5   )r^   r?   r:   s    r   r?   ÚLookupError.__str__ƒ   s   € Ü×"Ñ" 4Ó(Ð(r   )r{   r|   rz   N)rz   rJ   r{   rJ   r6   rJ   rL   rM   )r)   r*   r+   r,   r"   r;   r?   r.   rR   r   r   ru   ru   p   s   † ô
ò+õ)r   ru   c                  ó   • \ rS rSrSrg)ÚAmbiguousPrefixLookupErroré‡   rR   Nr`   rR   r   r   r…   r…   ‡   ra   r   r…   c                  ó   • \ rS rSrSrg)ÚFilteredLookupErroré‹   rR   Nr`   rR   r   r   rˆ   rˆ   ‹   ra   r   rˆ   c                  ó   • \ rS rSrSrg)ÚManifestLookupErroré�   rR   Nr`   rR   r   r   r‹   r‹   �   ra   r   r‹   c                  ó4   ^ • \ rS rSrSrSU 4S jjr\rSrU =r	$ )ÚCommandErroré“   z7Exception raised on errors in parsing the command line.c                ó:   >• Xl         X l        [        TU ]  5         g r5   )Úcommandr6   r!   r"   )r#   r‘   r6   r%   s      €r   r"   ÚCommandError.__init__–   s   ø€ ØŒØŒÜ‰ÑÕr   )r‘   r6   )r‘   rK   r6   rJ   rL   rM   ©
r)   r*   r+   r,   r-   r"   r   r;   r.   r/   r0   s   @r   rŽ   rŽ   “   s   ø† ÙA÷ð
 †Ir   rŽ   c                  óD   ^ • \ rS rSrSr S     SU 4S jjjr\rSrU =r	$ )ÚUnknownCommandéž   z8Exception raised if command is not in the command table.c                ó:   >• Xl         X l        [        TU ]  5         g r5   )r‘   Úall_commandsr!   r"   )r#   r‘   r˜   r%   s      €r   r"   ÚUnknownCommand.__init__¡   s   ø€ ð
 ŒØ(ÔÜ‰ÑÕr   )r˜   r‘   r5   )r‘   rJ   r˜   zOptional[List[bytes]]rL   rM   r“   r0   s   @r   r•   r•   ž   s8   ø† ÙBð
 /3ðàðð ,ðð 
÷	ð ð †Ir   r•   c                  ó4   ^ • \ rS rSrSrSU 4S jjr\rSrU =r	$ )ÚAmbiguousCommandé­   zCException raised if command shortcut matches more than one command.c                ó:   >• Xl         X l        [        TU ]  5         g r5   )ÚprefixÚmatchesr!   r"   )r#   rž   rŸ   r%   s      €r   r"   ÚAmbiguousCommand.__init__°   s   ø€ ØŒØŒÜ‰ÑÕr   )rŸ   rž   )rž   rJ   rŸ   úList[bytes]rL   rM   r“   r0   s   @r   r›   r›   ­   s   ø† ÙM÷ð
 †Ir   r›   c                  ó4   ^ • \ rS rSrSrSU 4S jjr\rSrU =r	$ )ÚWorkerErroré¸   z,Exception raised when a worker process dies.c                ó0   >• Xl         [        TU ]	  U5        g r5   )Ústatus_coder!   r"   )r#   r¦   r%   s     €r   r"   ÚWorkerError.__init__»   s   ø€ Ø&Ôä‰Ñ˜Õ%r   )r¦   )r¦   rm   rL   rM   r“   r0   s   @r   r£   r£   ¸   s   ø† Ù6÷&ð
 †Ir   r£   c                  ó*   • \ rS rSrSrSrSrSS jrSrg)	ÚInterventionRequiredéÃ   z<Exception raised when a command requires human intervention.r
   éð   c                óŒ   • SSK Jn  U" S5      U R                  -  nU R                  (       a  X!" S5      U R                  -  -  nU$ )Nr
   rB   s   %s
rD   rE   rG   s      r   rH   ÚInterventionRequired.formatÉ   s:   € Ýá�G“*˜tŸ|™|Ñ+ˆØ�9�9Ø�q˜“| d§i¡iÑ/Ñ/ˆGØˆr   rR   NrO   )	r)   r*   r+   r,   r-   rP   rQ   rH   r.   rR   r   r   r©   r©   Ã   s   † ÙFàÐØÐ÷r   r©   c                  ó"   • \ rS rSrSrSS jrSrg)ÚConflictResolutionRequiredéÒ   zOException raised when a continuable command required merge conflict resolution.c                óZ   • SSK Jn  Xl        [        R	                  U U" S5      U-  5        g )Nr
   rB   s@   unresolved conflicts (see 'hg resolve', then 'hg %s --continue'))rF   rC   Úopnamer©   r"   )r#   r²   rC   s      r   r"   Ú#ConflictResolutionRequired.__init__Õ   s0   € ÝàŒÜ×%Ñ%ØÙØSóð ñõ	
r   )r²   N)r²   rJ   rL   rM   ©r)   r*   r+   r,   r-   r"   r.   rR   r   r   r¯   r¯   Ò   s
   † ÙY÷

r   r¯   c                  ó   • \ rS rSrSrSrSrg)Ú
InputErroréâ   zsIndicates that the user made an error in their input.

Examples: Invalid command, invalid flags, invalid revision.
é
   rR   Nr[   rR   r   r   r¶   r¶   â   r\   r   r¶   c                  ó   • \ rS rSrSrSrSrg)Ú
StateErroréë   z‡Indicates that the operation might work if retried in a different state.

Examples: Unresolved merge conflicts, unfinished operations.
rx   rR   Nr[   rR   r   r   rº   rº   ë   r\   r   rº   c                  ó   • \ rS rSrSrSrSrg)ÚCanceledErroréô   zrIndicates that the user canceled the operation.

Examples: Close commit editor with error status, quit chistedit.
éú   rR   Nr[   rR   r   r   r½   r½   ô   s   † ñð
 Ór   r½   c                  ó   • \ rS rSrSrSrSrg)ÚSecurityErroréý   z®Indicates that some aspect of security failed.

Examples: Bad server credentials, expired local credentials for network
filesystem, mismatched GPG signature, DoS protection.
é–   rR   Nr[   rR   r   r   rÁ   rÁ   ý   s   † ñð Ór   rÁ   c                  ó   • \ rS rSrSrSrg)ÚHookLoadErrori  zcraised when loading a hook fails, aborting an operation

Exists to allow more specialized catching.rR   NrV   rR   r   r   rÅ   rÅ     s   † ô2r   rÅ   c                  ó   • \ rS rSrSrSrSrg)Ú	HookAborti  zfraised when a validation hook fails, aborting an operation

Exists to allow more specialized catching.r   rR   Nr[   rR   r   r   rÇ   rÇ     s   † ñ2ð Ór   rÇ   c                  óT   ^ • \ rS rSrSrSr  S       SU 4S jjjrS	S jrSrU =r	$ )
ÚConfigErrori  z*Exception raised when parsing config filesé   c                ó,   >• [         TU ]  XS9  X l        g ©Nr'   ©r!   r"   Úlocation©r#   r6   rÎ   r   r%   s       €r   r"   ÚConfigError.__init__  ó   ø€ ô 	‰Ñ˜ÐÑ,Ø �r   c                ó  • SSK Jn  U R                  b6  U" S5      [        R                  " U R                  5      U R
                  4-  nOU" S5      U R
                  -  nU R                  (       a  X!" S5      U R                  -  -  nU$ )Nr
   rB   s   config error at %s: %s
s   config error: %s
rD   ©rF   rC   rÎ   r   r   r6   r   rG   s      r   rH   ÚConfigError.format#  sv   € Ýà�=‰=Ñ$ÙÐ3Ó4Ü× Ò  §¡Ó/Ø—‘ð8ñ ‰Gñ
 Ð-Ó.°·±Ñ=ˆGØ�9�9Ø�q˜“| d§i¡iÑ/Ñ/ˆGØˆr   ©rÎ   ©NN)r6   rJ   rÎ   rK   r   rK   rL   rM   rO   ©
r)   r*   r+   r,   r-   rQ   r"   rH   r.   r/   r0   s   @r   rÉ   rÉ     sN   ø† Ù4àÐð
 %)Ø $ð	!àð!ð "ð!ð ð	!ð
 
÷!ð !÷ò r   rÉ   c                  ó   • \ rS rSrSrSrg)ÚUpdateAborti2  z6Raised when an update is aborted for destination issuerR   NrV   rR   r   r   rÙ   rÙ   2  ó   † Ü@r   rÙ   c                  ó   • \ rS rSrSrSrg)ÚMergeDestAborti6  z7Raised when an update is aborted for destination issuesrR   NrV   rR   r   r   rÜ   rÜ   6  s   † ÜAr   rÜ   c                  ó   • \ rS rSrSrSrg)ÚNoMergeDestAborti:  zBRaised when an update is aborted because there is nothing to mergerR   NrV   rR   r   r   rÞ   rÞ   :  s   † ÜLr   rÞ   c                  ó   • \ rS rSrSrSrg)ÚManyMergeDestAborti>  zARaised when an update is aborted because destination is ambiguousrR   NrV   rR   r   r   rà   rà   >  s   † ÜKr   rà   c                  ó   • \ rS rSrSrS rSrg)ÚResponseExpectediB  z+Raised when an EOF is received for a promptc                óF   • SSK Jn  [        R                  X" S5      5        g )Nr
   rB   s   response expected)rF   rC   rT   r"   )r#   rC   s     r   r"   ÚResponseExpected.__init__E  s   € Ýä�‰�t˜QÐ3Ó4Õ5r   rR   Nr´   rR   r   r   râ   râ   B  s
   † Ù5õ6r   râ   c                  ó   • \ rS rSrSrSrSrg)ÚRemoteErroriK  z:Exception raised when interacting with a remote repo failsrd   rR   Nr[   rR   r   r   ræ   ræ   K  s   † ÙDàÓr   ræ   c                  ó>   ^ • \ rS rSrSr  S   SU 4S jjjrSrU =r$ )ÚOutOfBandErroriQ  z3Exception raised when a remote repo reports failurec                ó€   >• SSK Jn  U(       a  U" S5      UR                  S5      -  nOU" S5      n[        TU ]  XS9  g )Nr
   rB   s   remote error:
%só   
s   remote errorr'   )rF   rC   Úrstripr!   r"   )r#   r6   r   rC   r%   s       €r   r"   ÚOutOfBandError.__init__T  s>   ø€ õ
 	æáÐ,Ó-°·±¸uÓ0EÑE‰Gá˜Ó(ˆGÜ‰Ñ˜ÐÒ,r   rR   rÖ   )r6   rK   r   rK   r(   r0   s   @r   rè   rè   Q  s*   ø† Ù=ð $(Ø $ð-à ð-ð ÷-ö -r   rè   c                  óP   ^ • \ rS rSrSrSr  S     SU 4S jjjrS	S jrSrU =r	$ )
Ú
ParseErroric  z@Raised when parsing config files and {rev,file}sets (msg[, pos])r¸   c                ó,   >• [         TU ]  XS9  X l        g rÌ   rÍ   rÏ   s       €r   r"   ÚParseError.__init__h  rÑ   r   c                ó  • SSK Jn  U R                  b6  U" S5      [        R                  " U R                  5      U R
                  4-  nOU" S5      U R
                  -  nU R                  (       a  X!" S5      U R                  -  -  nU$ )Nr
   rB   s   hg: parse error at %s: %s
s   hg: parse error: %s
rD   rÓ   rG   s      r   rH   ÚParseError.formatq  sv   € Ýà�=‰=Ñ$ÙÐ6Ó7Ü× Ò  §¡Ó/Ø—‘ð;ñ ‰Gñ
 Ð0Ó1°D·L±LÑ@ˆGØ�9�9Ø�q˜“| d§i¡iÑ/Ñ/ˆGØˆr   rÕ   rÖ   )r6   rJ   rÎ   zOptional[Union[bytes, int]]r   rK   rO   r×   r0   s   @r   rî   rî   c  sD   ø† ÙJàÐð
 15Ø $ð	!àð!ð .ð!ð ÷	!ð !÷ò r   rî   c                  ó   • \ rS rSr\rSrg)Ú
PatchErrori€  rR   Nrr   rR   r   r   rô   rô   €  rs   r   rô   c                  ó   • \ rS rSr\rSrg)ÚPatchParseErrori„  rR   Nrr   rR   r   r   rö   rö   „  rs   r   rö   c                  ó   • \ rS rSr\rSrg)ÚPatchApplicationErroriˆ  rR   Nrr   rR   r   r   rø   rø   ˆ  rs   r   rø   c                óZ   ^• U4S jnU  Vs/ s H  o2" U5      S:”  d  M  UPM     sn$ s  snf )Nc                óP   >• [         R                  " S TU 5      R                  5       $ r5   )ÚdifflibÚSequenceMatcherÚratio)ÚxÚvalues    €r   Ú<lambda>Úgetsimilar.<locals>.<lambda>�  s   ø€ ”G×+Ò+¨D°%¸Ó;×AÑAÔCr   g333333ã?rR   )Úsymbolsrÿ   ÚsimÚss    `  r   Ú
getsimilarr  Œ  s,   ø€ Ü
C€Cñ Ó/’w�! # a£&¨3¡,�A‘wÑ/Ð/ùÒ/s   Œ(Ÿ(c                ó¢   • SSK Jn  [        U 5      S:X  a  U" S5      U S   -  $ U (       a%  SR                  [	        U 5      5      nU" S5      U-  $ g )Nr
   rB   s   did you mean %s?r   r   s   did you mean one of %s?)rF   rC   r   r   Úsorted)ÚsimilarrC   Ússs      r   Úsimilarity_hintr
  “  sO   € Ýä
ˆ7ƒ|�qÓÙÐ$Ó%¨°©
Ñ2Ð2Þ	Ø�Z‰Zœ˜w›Ó(ˆÙÐ+Ó,¨rÑ1Ð1àr   c                  ó"   • \ rS rSrSrSS jrSrg)ÚUnknownIdentifieriŸ  zFException raised when a {rev,file}set references an unknown identifierc                óv   • SSK Jn  [        X!5      n[        U5      n[        R                  X" S5      U-  US9  g )Nr
   rB   s   unknown identifier: %sr'   )rF   rC   r  r
  rî   r"   )r#   Úfunctionr  rC   r  r   s         r   r"   ÚUnknownIdentifier.__init__¢  s>   € Ýä˜WÓ/ˆÜ˜wÓ'ˆä×ÑØ�!Ð-Ó.°Ñ9Àð 	ò 	
r   rR   N)r  rJ   r  úIterable[bytes]rL   rM   r´   rR   r   r   r  r  Ÿ  s
   † ÙP÷
r   r  c                  ó   • \ rS rSr\rSrg)Ú	RepoErrori­  rR   Nrr   rR   r   r   r  r  ­  rs   r   r  c                  ó   • \ rS rSrSrg)ÚRepoLookupErrori±  rR   Nr`   rR   r   r   r  r  ±  ra   r   r  c                  ó   • \ rS rSrSrg)ÚFilteredRepoLookupErroriµ  rR   Nr`   rR   r   r   r  r  µ  ra   r   r  c                  ó   • \ rS rSrSrg)ÚCapabilityErrori¹  rR   Nr`   rR   r   r   r  r  ¹  ra   r   r  c                  ó   • \ rS rSrSrSrg)ÚRequirementErrori½  z6Exception raised if .hg/requires has an unknown entry.rR   NrV   rR   r   r   r  r  ½  rÚ   r   r  c                  ó"   • \ rS rSrSrSS jrSrg)Ú
StdioErroriÁ  z'Raised if I/O to stdout or stderr failsc                óX   • [         R                  XR                  UR                  5        g r5   )ÚIOErrorr"   ÚerrnoÚstrerror)r#   Úerrs     r   r"   ÚStdioError.__init__Ä  s   € Ü×Ñ˜Ÿy™y¨#¯,©,Õ7r   rR   N)r!  r  rL   rM   r´   rR   r   r   r  r  Á  s
   † Ù1÷8r   r  c                  ó   • \ rS rSrSS jrSrg)ÚUnsupportedMergeRecordsiÊ  c                ó®   • SSK Jn  [        U5      U l        SR	                  U R                  5      n[
        R                  U U" S5      U-  U" S5      S9  g )Nr
   rB   ó    s#   unsupported merge state records: %ssI   see https://mercurial-scm.org/wiki/MergeStateRecords for more informationr'   )rF   rC   r  Úrecordtypesr   rT   r"   )r#   r'  rC   r  s       r   r"   Ú UnsupportedMergeRecords.__init__Ë  sU   € Ýä! +Ó.ˆÔØ�I‰I�d×&Ñ&Ó'ˆÜ�‰ØÙÐ4Ó5¸Ñ9Ùð$óð 	ò 	
r   )r'  N)r'  r  rL   rM   rn   rR   r   r   r$  r$  Ê  s   † ÷
r   r$  c                  óF   ^ • \ rS rSrSr  S       SU 4S jjjrSrU =r$ )ÚUnknownVersioniÚ  zHgeneric exception for aborting from an encounter with an unknown versionc                ó,   >• X0l         [        TU ]	  XS9  g rÌ   )Úversionr!   r"   )r#   Úmsgr   r,  r%   s       €r   r"   ÚUnknownVersion.__init__Ý  s   ø€ ð ŒÜ‰Ñ˜ÐÒ(r   )r,  rÖ   )r-  rJ   r   rK   r,  rK   rL   rM   r(   r0   s   @r   r*  r*  Ú  s>   ø† ÙRð
 !%Ø#'ð	)àð)ð ð)ð !ð	)ð
 
÷)ö )r   r*  c                  ó2   • \ rS rSr          SS jrSrg)Ú	LockErroriç  c                ó<   • [         R                  XX#5        X@l        g r5   )r  r"   Údesc)r#   r  r   Úfilenamer2  s        r   r"   ÚLockError.__init__è  s   € ô 	×Ñ˜ hÔ9Ø�	r   )r2  N)
r  rm   r   rN   r3  rJ   r2  rK   rL   rM   rn   rR   r   r   r0  r0  ç  s7   † ðàðð ðð ð	ð
 ðð 
÷r   r0  c                  ó*   • \ rS rSr      SS jrSrg)ÚLockHeldiõ  c                óJ   • [         R                  XSX#5        X l        X@l        g )Nz	Lock held)r0  r"   r3  Úlocker)r#   r  r3  r2  r8  s        r   r"   ÚLockHeld.__init__ö  s    € ô 	×Ñ˜4¨°XÔDØ'ŒØ�r   )r3  r8  N)r  rm   r3  rJ   r2  rK   rn   rR   r   r   r6  r6  õ  s#   † ð	àð	ð ð	ð ÷		r   r6  c                  ó   • \ rS rSrSrg)ÚLockUnavailablei  rR   Nr`   rR   r   r   r;  r;    ra   r   r;  c                  ó   • \ rS rSr\rSrg)Ú LockInheritanceContractViolationi  rR   Nrr   rR   r   r   r=  r=    rs   r   r=  c                  ó   • \ rS rSrSr\rSrg)ÚResponseErrori  z6Raised to print an error with part of output and exit.rR   N©r)   r*   r+   r,   r-   r   r;   r.   rR   r   r   r?  r?    s
   † Ù@àƒIr   r?  c                  ó   • \ rS rSrSrSrg)ÚSignalInterrupti  z'Exception raised on SIGTERM and SIGHUP.rR   NrV   rR   r   r   rB  rB    s   † Ü1r   rB  c                  ó   • \ rS rSr\rSrg)ÚSignatureErrori  rR   Nrr   rR   r   r   rD  rD    rs   r   rD  c                  ó   • \ rS rSrSr\rSrg)Ú	PushRacedi  z?An exception raised during unbundling that indicate a push racerR   Nr@  rR   r   r   rF  rF    s
   † ÙIàƒIr   rF  c                  ó4   ^ • \ rS rSrSrSU 4S jjr\rSrU =r	$ )ÚProgrammingErrori   zBRaised if a mercurial (core or extension) developer made a mistakec                óZ   >• [         R                  " U5      n[        TU ]  " U/UQ70 UD6  g r5   )r   r>   r!   r"   )r#   r-  r   Úkwargsr%   s       €r   r"   ÚProgrammingError.__init__#  s*   ø€ ô �oŠo˜cÓ"ˆÜ‰Ò˜Ð.˜tÒ. vÓ.r   rR   )r-  r   r“   r0   s   @r   rH  rH     s   ø† ÙL÷/ð †Ir   rH  c                  ó   • \ rS rSrSr\rSrg)ÚWdirUnsupportedi-  z;An exception which is raised when 'wdir()' is not supportedrR   Nr@  rR   r   r   rM  rM  -  s
   † ÙEàƒIr   rM  c                  ó   • \ rS rSrSr\rSrg)ÚBundleValueErrori4  z-error raised when bundle2 cannot be processedrR   Nr@  rR   r   r   rO  rO  4  s
   † Ù7àƒIr   rO  c                  ó   • \ rS rSrSS jrSrg)ÚBundleUnknownFeatureErrori:  Nc                óF  • Xl         X l        X0l        U R                   c  SnOUnU R                  nU R                  (       a®  U R                  (       a�  [        U R                  5      [        U R                  5      :X  d   e/ n[	        U R                  5       HT  u  pgU R                  U   nUc  UR                  U5        M*  UR                  SU[        R                  " U5      4-  5        MV     U(       a  SUSR                  U5      4-  n[        R                  X5        g )Ns   Stream Parameters   %s=%rs   %s - %sr   )ÚparttypeÚparamsÚvaluesr   Ú	enumerateÚappendr   Úmaybebytestrr   Ú
ValueErrorr"   )	r#   rS  rT  rU  r-  ÚentriesÚidxÚparÚvals	            r   r"   Ú"BundleUnknownFeatureError.__init__;  sà   € Ø ŒØŒØŒØ�=‰=Ñ Ø%‰CàˆCØ—+‘+ˆØ�;�;˜4Ÿ;Ÿ;Ü�t—{‘{Ó#¤s¨4¯;©;Ó'7Ó7Ð7Ð7ØˆGÜ% d§k¡kÖ2‘�Ø—k‘k #Ñ&�Ø‘;Ø—N‘N 3Ö'à—N‘N 8¨s´H×4IÒ4IÈ#Ó4NÐ.OÑ#OÖPñ 3ö Ø  U§Z¡Z°Ó%8Ð9Ñ9ˆCÜ×Ñ˜DÕ&r   )rT  rS  rU  )NrR   rR   rn   rR   r   r   rQ  rQ  :  s   † ÷'r   rQ  c                  ó   • \ rS rSrSr\rSrg)ÚReadOnlyPartErroriR  z<error raised when code tries to alter a part being generatedrR   Nr@  rR   r   r   r`  r`  R  s
   † ÙFàƒIr   r`  c                  ó$   • \ rS rSrSr SS jrSrg)ÚPushkeyFailediX  z9error raised when a pushkey part failed to update a valueNc                ó€   • Xl         X l        X0l        X@l        XPl        X`l        [        R                  U SX#4-  5        g )Ns"   failed to update value for "%s/%s")ÚpartidÚ	namespaceri   ÚnewÚoldÚretrT   r"   )r#   rd  re  ri   rf  rg  rh  s          r   r"   ÚPushkeyFailed.__init__[  s<   € ð ŒØ"ŒØŒØŒØŒØŒä�‰ØÐ7¸9Ð:JÑJõ	
r   )ri   re  rf  rg  rd  rh  )NNNNNr´   rR   r   r   rb  rb  X  s   † ÙCð IM÷
r   rb  c                  ó"   • \ rS rSrSrSS jrSrg)ÚCensoredNodeErrorij  z‡error raised when content verification fails on a censored node

Also contains the tombstone data substituted for the uncensored data.
c                ó\   • SSK Jn  [        R                  U SX" U5      4-  5        X0l        g )Nr
   )Úshorts   %s:%s)r~   rm  rX   r"   Ú	tombstone)r#   r3  r~   rn  rm  s        r   r"   ÚCensoredNodeError.__init__p  s(   € Ýä×Ñ˜d H°¸%À»+Ð/FÑ$FÔGØ"�r   )rn  N)r3  rJ   r~   rJ   rn  rJ   r´   rR   r   r   rk  rk  j  s   † ñ÷
#r   rk  c                  ó   • \ rS rSrSrSrg)ÚCensoredBaseErroriw  a  error raised when a delta is rejected because its base is censored

A delta based on a censored revision must be formed as single patch
operation which replaces the entire base with new content. This ensures
the delta may be applied by clones which have not censored the base.
rR   NrV   rR   r   r   rq  rq  w  s   † ôr   rq  c                  ó   • \ rS rSrSr\rSrg)ÚInvalidBundleSpecificationi€  zserror raised when a bundle specification is invalid.

This is used for syntax errors as opposed to support errors.
rR   Nr@  rR   r   r   rs  rs  €  s   † ñð
 ƒIr   rs  c                  ó   • \ rS rSrSr\rSrg)ÚUnsupportedBundleSpecificationi‰  z:error raised when a bundle specification is not supported.rR   Nr@  rR   r   r   ru  ru  ‰  s
   † ÙDàƒIr   ru  c                  ó   • \ rS rSrSr\rSrg)ÚCorruptedStatei�  zCerror raised when a command is not able to read its state from filerR   Nr@  rR   r   r   rw  rw  �  s
   † ÙMàƒIr   rw  c                  ó   • \ rS rSrSr\rSrg)ÚCorruptedDirstatei•  z�error raised the dirstate appears corrupted on-disk. It may be due to
a dirstate version mismatch (i.e. expecting v2 and finding v1 on disk).rR   Nr@  rR   r   r   ry  ry  •  s   † ñOð ƒIr   ry  c                  ó   • \ rS rSrSrSrg)ÚPeerTransportErroriœ  z>Transport-level I/O error when communicating with a peer repo.rR   NrV   rR   r   r   r{  r{  œ  s   † ÜHr   r{  c                  ó   • \ rS rSrSr\rSrg)ÚInMemoryMergeConflictsErrori   zFException raised when merge conflicts arose during an in-memory merge.rR   Nr@  rR   r   r   r}  r}     s
   † ÙPàƒIr   r}  c                  ó2   • \ rS rSrSr S     SS jjrSrg)ÚWireprotoCommandErrori¦  zÅRepresents an error during execution of a wire protocol command.

Should only be thrown by wire protocol version 2 commands.

The error is a formatter string and an optional iterable of arguments.
Nc                ó   • Xl         X l        g r5   ©r6   Úmessageargs)r#   r6   r   s      r   r"   ÚWireprotoCommandError.__init__®  s   € ð
 ŒØÕr   r�  r5   )r6   rJ   r   zOptional[Sequence[bytes]]rL   rM   r´   rR   r   r   r  r  ¦  s2   † ñð +/ð àð ð (ð ð 
÷	 ð  r   r  rO   )r  r  rÿ   rJ   rL   r¡   )r  r¡   rL   rK   )Zr-   Ú
__future__r   rû   Útypingr   r   r   r   r   r	   Ú r   r   r   r7   r2   rT   rX   r^   rc   Ú
IndexErrorrp   ÚKeyErrorru   r…   rˆ   r‹   rŽ   r•   r›   r£   r©   r¯   r¶   rº   r½   rÁ   rÅ   rÇ   rÉ   rÙ   rÜ   rÞ   rà   râ   ræ   rè   rî   rô   rö   rø   r  r
  r  r  r  r  r  r  r  r  r$  r*  r0  r6  r;  ÚRuntimeErrorr=  r?  ÚKeyboardInterruptrB  rD  rF  rH  rM  rY  rO  rQ  r`  rb  rk  rq  rs  ru  rw  ry  r{  r}  r  rR   r   r   Ú<module>r‹     sl  ðñõ #ã ÷÷ õ ôQ÷	&ñ 	&ôˆD�)ô ô>@ˆEô @ô�5ô ô	�,ô 	ô ˜ô  ô˜ô ô)�+˜xô )ô.	 ô 	ô	˜+ô 	ô	˜+ô 	ô�9ô ô�Yô ô�yô ô�)ô ô˜5ô ô
Ð!5ô 
ô �ô ô�ô ô�Eô ô�Eô ô2�Eô 2ô�ô ô�%ô ô:A�%ô AôB�Uô BôM�~ô MôL˜ô Lô6�uô 6ô�%ô ô-�[ô -ô$�ô ô:�ô ô�jô ô˜Jô ô0ô	ô
˜
ô 
ô��iô ô	�iô 	ô	˜oô 	ô	�iô 	ôA�yô Aô8�ô 8ô
˜eô 
ô 
)�Uô 
)ô	�ô 	ô
ˆyô 
ô	�iô 	ô
 |ô ô�Iô ô2Ð'ô 2ô�Yô ô�ô ô
�t˜\ô 
ô�iô ô�zô ô'Ð 0ô 'ô0˜ô ô
�Eô 
ô$
#˜ô 
#ô˜ô ô ô ô Yô ô�Yô ô˜	ô ôI˜ô Iô )ô ô ˜Iõ  r   