403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/foreign.cpython-313.pyc
�

p��g����SrSSKJrJr SSKJr SSKJr SSKJ	r	 "SS5r
"SS	\R5r"S
S\	5r
"SS
5r"SS\R5r\"5r"SS\5r"SS\5rg)zForeign branch utilities.�)�errors�registry)�Branch)�
Repository)�Revisionc�>�\rSrSr%SrSrSr\\S'Sr	Sr
SrSrg	)
�
VcsMapping�zHDescribes the mapping between the semantics of Bazaar and a foreign VCS.F�revid_prefixc��Xlg)zKCreate a new VcsMapping.

:param vcs: VCS that this mapping maps to Bazaar
N��vcs)�selfrs  �0/usr/lib/python3/dist-packages/breezy/foreign.py�__init__�VcsMapping.__init__&s	��
��c�,�[UR5e)z�Parse a bzr revision id and convert it to a foreign revid.

:param bzr_revid: The bzr revision id (a string).
:return: A foreign revision id, can be any sort of object.
��NotImplementedError�revision_id_bzr_to_foreign)r�	bzr_revids  rr�%VcsMapping.revision_id_bzr_to_foreign-���"�$�"A�"A�B�Brc�,�[UR5e)z�Parse a foreign revision id and convert it to a bzr revid.

:param foreign_revid: Foreign revision id, can be any sort of object.
:return: A bzr revision id.
)r�revision_id_foreign_to_bzr�r�
foreign_revids  rr�%VcsMapping.revision_id_foreign_to_bzr5rrr
N)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__�experimental�
roundtripping�bytes�__annotations__rrr�__static_attributes__�rrr	r	s,��R��L��M����C�Crr	c�0�\rSrSrSrSrSrSrSrSr	g)	�VcsMappingRegistry�>zrRegistry for Bazaar<->foreign VCS mappings.

There should be one instance of this registry for every foreign VCS.
c�f�SU;a[S5e[RRXX#5 g)z�Register a mapping between Bazaar and foreign VCS semantics.

The factory must be a callable that takes one parameter: the key.
It must produce an instance of VcsMapping when called.
�:z&mapping name can not contain colon (:)N��
ValueErrorr�Registry�register)r�key�factory�helps    rr3�VcsMappingRegistry.registerDs-���3�;��E�F�F����"�"�4�g�<rc�&�URU5 g)ziSet the 'default' key to be a clone of the supplied key.

This method must be called once and only once.
N)�_set_default_key)rr4s  r�set_default�VcsMappingRegistry.set_defaultNs��
	
���c�"rc�@�URUR55$)z>Convenience function for obtaining the default mapping to use.)�get�_get_default_key�rs r�get_default�VcsMappingRegistry.get_defaultUs���x�x��-�-�/�0�0rc�,�[UR5e)z-Convert a bzr revision id to a foreign revid.r�r�revids  rr�-VcsMappingRegistry.revision_id_bzr_to_foreignYs��!�$�"A�"A�B�Brr*N)
r r!r"r#r$r3r:r@rr)r*rrr,r,>s���
=�#�1�Crr,c�,^�\rSrSrSrU4SjrSrU=r$)�ForeignRevision�^zdA Revision from a Foreign repository. Remembers
information about foreign revision id and mapping.

c�T>�SU;aSUS'[TU]"U0UD6 XlX lg)N�inventory_sha1r)�superrr�mapping)rrrL�args�kwargs�	__class__s     �rr�ForeignRevision.__init__ds3����6�)�'*�F�#�$�
���$�)�&�)�*���r)rrL�r r!r"r#r$rr)�
__classcell__�rOs@rrGrG^s����
�rrGc�6�\rSrSrSrSrSrSSjrSrSr	Sr
g)	�
ForeignVcs�lz!A foreign version control system.Nc��X lXlg)z�Create a new foreign vcs instance.

:param mapping_registry: Registry with mappings for this VCS.
:param abbreviation: Optional abbreviation ('bzr', 'svn', 'git', etc)
N��abbreviation�mapping_registry)rrZrYs   rr�ForeignVcs.__init__ss��)�� 0�rc��0$)z�Prepare a foreign revision id for formatting using bzr log.

:param foreign_revid: Foreign revision id.
:return: Dictionary mapping string keys to string values.
r*rs  r�show_foreign_revid�ForeignVcs.show_foreign_revid|s	���	rc�,�[UR5e)z�Serialize a foreign revision id for this VCS.

:param foreign_revid: Foreign revision id
:return: Bytestring with serialized revid, will not contain any
    newlines.
)r�serialize_foreign_revidrs  rr`�"ForeignVcs.serialize_foreign_revid�s��"�$�">�">�?�?rrX�N)r r!r"r#r$�
branch_format�repository_formatrr]r`r)r*rrrUrUls ��+��M���1��@rrUc�$�\rSrSrSrSrSrSrg)�ForeignVcsRegistry�z�Registry for Foreign VCSes.

There should be one entry per foreign VCS. Example entries would be
"git", "svn", "hg", "darcs", etc.

c�r�SU;dSU;a[S5e[RRXX#5 g)z�Register a foreign VCS.

:param key: Prefix of the foreign VCS in revision ids
:param foreign_vcs: ForeignVCS instance
:param help: Description of the foreign VCS
�:�-zvcs name can not contain : or -Nr0)rr4�foreign_vcsr6s    rr3�ForeignVcsRegistry.register�s3���#�:�����>�?�?����"�"�4�k�@rc�.�SU;dSU;a[R"US5eURURS5SR	S55nURRU5$![
a [R"US5ef=f)z�Parse a bzr revision and return the matching mapping and foreign
revid.

:param revid: The bzr revision id
:return: tuple with foreign revid and vcs mapping
r/�-N��ascii)r�InvalidRevisionIdr=�split�decode�KeyErrorrZr)rrDrks   r�parse_revision_id�$ForeignVcsRegistry.parse_revision_id�s����u���E� 1��*�*�5�$�7�7�	8��(�(�5�;�;�t�#4�Q�#7�#>�#>�w�#G�H�K��+�+�F�F�u�M�M���	8��*�*�5�$�7�7�	8�s�2A2�2"Br*N)r r!r"r#r$r3rur)r*rrrfrf�s���	A�
Nrrfc�@�\rSrSr%Sr\\S'SrSrS
Sjr	Sr
S	rg)�ForeignRepository�z�A Repository that exists in a foreign version control system.

The data in this repository can not be represented natively using
Bazaars internal datastructures, but have to converted using a VcsMapping.
rc�,�[UR5e)z�Check whether the specified foreign revision is present.

:param foreign_revid: A foreign revision id, in the format used
                      by this Repository's VCS.
)r�has_foreign_revisionrs  rr{�&ForeignRepository.has_foreign_revision�s��"�$�";�";�<�<rc�,�[UR5e)z�Lookup a mapped or roundtripped revision by revision id.

:param revid: Bazaar revision id
:return: Tuple with foreign revision id and mapping.
)r�lookup_revision_idrCs  r�lookup_bzr_revision_id�(ForeignRepository.lookup_bzr_revision_id�s��"�$�"9�"9�:�:rNc�,�[UR5e)z"See Repository.all_revision_ids().)r�all_revision_ids)rrLs  rr��"ForeignRepository.all_revision_ids�s��!�$�"7�"7�8�8rc�,�[UR5e)z,Get the default mapping for this repository.)r�get_default_mappingr?s rr��%ForeignRepository.get_default_mapping�s��!�$�":�":�;�;rr*rb)r r!r"r#r$rUr(r{rr�r�r)r*rrrxrx�s"���
�O�=�;�9�<rrxc�,^�\rSrSrSrU4SjrSrU=r$)�
ForeignBranch��z7Branch that exists in a foreign version control system.c�.>�Xl[TU]	5 grb)rLrKr)rrLrOs  �rr�ForeignBranch.__init__�s�����
���r)rLrQrSs@rr�r��s���A��rr�N)r$�rr�branchr�
repositoryr�revisionrr	r2r,rGrUrf�foreign_vcs_registryrxr�r*rr�<module>r�s���" ���"��"C�"C�JC��*�*�C�@�h��@�@�D N��*�*� N�F*�+�� <�
� <�F�F�r

Youez - 2016 - github.com/yon3zu
LinuXploit