403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.17
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/hgext/remotefilelog/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/hgext/remotefilelog/__pycache__/historypack.cpython-313.pyc
�

�^k�J��N�SSKJr SSKrSSKJrJr SSKJr SSKJ	r	 SSK
JrJrJ
r
 Sr\R"\5rS	rS
r\R"\5rSrSrS
rSrSrSrSrSrSrS
r"SS\R<5r"SS\R5r "SS\RB5r"g)�)�annotationsN)�hex�sha1nodeconstants)�util)�hashutil�)�basepack�	constants�shallowutils!20sQQII�s!20sQs!20s20s20s20sH�R�s.histidxs	.histpack��c�8�\rSrSr\r\rSrSSjrSrSr	Sr
g)	�historypackstore�+c��[U5$�N)�historypack)�self�paths  �A/usr/lib/python3/dist-packages/hgext/remotefilelog/historypack.py�getpack�historypackstore.getpack/s
���4� � �Nc��URHnURXUS9s $ UR5HnURXUS9s $ [X45e![a MYf=f![a MBf=f)N��known)�packs�getancestors�KeyError�refresh)r�name�noder�packs     rr!�historypackstore.getancestors2s����J�J�D�
��(�(��5�(�A�A���L�L�N�D�
��(�(��5�(�A�A�#���|�$�$���
��
���
��
�s"�A�A*�
A'�&A'�*
A8�7A8c��URHnURX5s $ UR5HnURX5s $ [X45e![a M[f=f![a MCf=fr)r �getnodeinfor"r#)rr$r%r&s    rr)�historypackstore.getnodeinfoAs����J�J�D�
��'�'��3�3���L�L�N�D�
��'�'��3�3�#���|�$�$���
��
���
��
�s"�A�A,�
A)�(A)�,
A:�9A:c�4�[SU[U54-5e)Ns&cannot add to historypackstore (%s:%s)��RuntimeErrorr�r�filenamer%�p1�p2�linknode�copyfroms       r�add�historypackstore.addPs ���5��3�t�9�8M�M�
�	
r�r)�__name__�
__module__�__qualname__�__firstlineno__�INDEXSUFFIX�
PACKSUFFIXrr!r)r4�__static_attributes__r6rrrr+s ���K��J�!�
%�
%�
rrc�^�\rSrSr\r\rS/rU4SjrSrSSjr	Sr
SSjrSrS	r
S
rSrSrSS
jrSrSrSrSrU=r$)r�Vrc�P>�[TU]U5 [Ul[Ulgr)�super�__init__�INDEXFORMAT2�INDEXFORMAT�INDEXENTRYLENGTH2�INDEXENTRYLENGTH)rr�	__class__s  �rrB�historypack.__init__\s ���
�����'��� 1��rc��/nUHup4URX45 M U$![a URX445 M<f=fr)�	_findnoder"�append)r�keys�missingr$r%s     r�
getmissing�historypack.getmissingasJ�����J�D�
-����t�*������
-�����|�,�
-�s�"�A�Ac��U(aX#;a/$URXUS9n0nUH
upgp�n
XxX�4XV'M U(d[X45eU$)znReturns as many ancestors as we're aware of.

return value: {
   node: (p1, p2, linknode, copyfrom),
   ...
}
r)�
_getancestorsr")rr$r%r�	ancestors�results�ancnoder0r1r2r3s           rr!�historypack.getancestorsks_���T�]��I��&�&�t��&�?�	���3<�/�G��x� "��;�G��4=���D�<�(�(��rc�*�URX5SS$)Nr)rJ)rr$r%s   rr)�historypack.getnodeinfos���~�~�d�)�!�"�-�-rc#�# �Uc
[5nURU5nUupVpxn	U1n
SnX�:a�U
(dgURXk-5up�U[-
nU
(aU[	U
5-
nU[
nX�;a�U
R
U5 U[nU[nU[R:waX�;aU
RU5 U[R:waUU;aU
RU5 X�UU[U
4v� X�:aM�gg7f�Nr)
�set�_findsection�
_readentry�PACKENTRYLENGTH�len�ANC_NODE�remove�
ANC_P1NODE�
ANC_P2NODEr�nullidr4�ANC_LINKNODE)rr$r%r�sectionr/�offset�size�nodeindexoffset�
nodeindexsize�pending�o�entryr3rT�p1node�p2nodes                 rrQ�historypack._getancestors�s�����=��E�E��#�#�D�)��AH�>��$���&��
���h���"�o�o�f�j�9�O�E�
�� �A���S��]�"���H�o�G��!����w�'��z�*���z�*���.�5�5�5�&�:M��K�K��'��.�5�5�5�&��:M��K�K��'����l�0C�X�N�N�%�h�s�DD
�D
c��URn[R"[X!U[-5nSnU[
nUS:waU[-
nX!X-nX44$rY)�_data�struct�unpack�
PACKFORMATr]�ANC_COPYFROM)rrf�datarlr3�copyfromlens      rr\�historypack._readentry�s`���z�z���
�
���f��&>�?�
�����L�)���!���o�%�F��V�%9�:�H���rc�4�[SU[U54-5e)Ns!cannot add to historypack (%s:%s)r,r.s       rr4�historypack.add�s ���0�H�c�$�i�3H�H�
�	
rc��URS:Xa+URX5nUHupEpgnXB:XdMXEXgU4s $ OnURU5n	U	SSup�URUU
X�-[5nUb9[
R"[U5up-URU
5up�USSU4-$[SU[U54-5e)Nrrrs unable to find history for %s:%s)�VERSIONrQr[�_bisect�NODEINDEXENTRYLENGTHrrrs�NODEINDEXFORMATr\r"r)rr$r%rRrTrmrnr2r3rerhrirlrfs              rrJ�historypack._findnode�s����<�<�1���*�*�4�6�I�?H�;���8��?�#�V�x�H�H�@I��'�'��-�G�-4�Q�R�[�*�O��L�L����/�$�	�E�� �%�}�}�_�e�D���"&�/�/�&�"9����R�a�y�H�;�.�.��:�d�C��I�=N�N�O�Orc�n�URn[R"U5R5n[R
"URUSUR5SnURnXTUR-nURn[US-UR5HnXXUR-n	X�:wdM O Un	URX6X�R5n
U
(d[U5e[R
"UR U
5nUup�p�nUR"X�[$R&-n[R
"SU5SnU[$R&-
nUR"X�U-nUU:wa[SUU4-5eUU-
n[R
"SUR(X�[$R&-5SnU
[$R&-
n
UR(X�U-nU
U-
n
UU:wa[SUU4-5eU
[*-
n
U
nU[$R&-
U-
[*-
nUUUUU4$)Nrr�!Hs&found file name %s when looking for %s)�paramsr�sha1�digestrrrs�fanoutstruct�fanoutprefix�_fanouttable�
indexstart�	_indexend�range�fanoutcountr}rFr"rD�_indexr
�FILENAMESIZErq�ENTRYCOUNTSIZE)rr$r��namehash�	fanoutkey�fanout�start�indexend�i�endrl�rawentry�xrfrgrhri�
rawnamelen�
actualnamelen�
actualname�filenamelength�nodelistoffset�nodelistsizes                       rr[�historypack._findsection�sM�������=�=��&�-�-�/���M�M�����*?�F�,?�,?�!@�
�
�
�	��"�"���!�F�$5�$5�5���>�>���y�1�}�f�&8�&8�9�A��)�f�/�/�/�C��|��:�
�C����X�c�3H�3H�I����4�.� ��=�=��!1�!1�5�9��:B�7��4�-��[�[��	�0F�0F�F�
�
��
�
�e�Z�8��;�
��9�1�1�1���[�[��
�=�
�
�����9�Z��<N�N��
�	�=�(������4�:�:�f�	�0F�0F�'F�G�
�
�
��	�)�(�(�(���Z�Z��.�)@�A�
��.� ���:���9�Z��<N�N��
�
	�.� �����9�)�)�)�N�:�^�K�	�
�����
�	
rc�t�UnURX"[-nURX3[-nXa:XaURX"U-$Xq:XaURX3U-$X#U-
:aXX#U-
S--nX�U-
U--
nURX�[-n	X�:XaURX�U-$X:�aUnOX:aUnX#U-
:aMXg)Nr)r��
NODELENGTH)
rr%r�r��entrylen�	origstart�	startnode�endnode�mid�midnodes
          rr}�historypack._bisect
s����	��K�K��
�(:�;�	��+�+�c�*�$4�5�����;�;�u�x�'7�8�8�
�_��;�;�s�8�^�4�4���.�(��U�{�q�0�0���I�o��9�:���+�+�c�*�,<�=���?��;�;�s�8�^�<�<��>��E��^��C���.�(�rc�>�UHup4URXU5 M gr)�markhistoryentry)r�ledger�optionsr/r%s     r�
markledger�historypack.markledger!s��"�N�H��#�#�D�D�9�#rc��URRU/5n[U5nUVs1sH-oDR(dMURUR
4iM/ nn[
X5-
5S:XaZURUR;a?[R"URSS9 [R"URSS9 gggs snf)NrT)�
ignoremissing)
�sources�getrZ�historyrepackedr/r%r^r�createdr�
unlinkpath�	indexpath�packpath)rr��entries�allkeys�e�repackedkeyss      r�cleanup�historypack.cleanup%s����.�.�$�$�T�2�.���d�)��*1�
�*1�Q�5F�5F� �Q�Z�Z���� �'�	�
��w�%�&�!�+��y�y����.�������d�C�����
�
�T�B�/�,��	
s�C�Cc#�P# �UR5Hup   nX4v� M g7fr)�iterentries)r�f�nr�s    r�__iter__�historypack.__iter__1s*��� $� 0� 0� 2��A�!�Q��1��$�J�!3�s�$&c#�# �SnXR:Ga;URn[R"SX!U[R
-5SnU[R
-
nX!X-nX-
n[R"SX!U[-5SnU[-
n[U5H�n[R"[X!U[-5nU[-
nX!X[-nX[-
nUU[U[U[U[U4v� U=R[-
slM� UR!5 XR:aGM:gg7f)Nrr�r�!I)�datasizerqrrrsr
r�r�r�rtr]rur_rarbrd�_pagedin�
freememory)	rrfrv�filenamelenr/�revcountr�rlr3s	         rr��historypack.iterentries5sS������}�}�$��:�:�D� �-�-��t�V�i�.D�.D�%D�E����K�
�i�,�,�,�F��V�%9�:�H��!�F��}�}��t�V�n�%<�=����H�
�n�$�F��8�_���
�
���f��.F� G����/�)�����2E�)E�F����-�-����(�O��*�%��*�%��,�'��
���
�
��0�
�%%�*
�O�O��I�}�}�$�$�s�E
E�E)rFrDr)r7r8r9r:r;r<�SUPPORTED_VERSIONSrBrNr!r)rQr\r4rJr[r}r�r�r�r�r=�
__classcell__�rGs@rrrVse����K��J����2�
��(.�
O�6
�
�
P�0@
�D�.:�
C��'�'rrc�`^�\rSrSrSr\r\rS/rS
U4SjjrSr	Sr
SU4SjjrSrS	r
U=r$)�mutablehistorypacki_a�A class for constructing and serializing a histpack file and index.

A history pack is a pair of files that contain the revision history for
various file revisions in Mercurial. It contains only revision history (like
parent pointers and linknodes), not any revision content information.

It consists of two files, with the following format:

.histpack
    The pack itself is a series of file revisions with some basic header
    information on each.

    datapack = <version: 1 byte>
               [<filesection>,...]
    filesection = <filename len: 2 byte unsigned int>
                  <filename>
                  <revision count: 4 byte unsigned int>
                  [<revision>,...]
    revision = <node: 20 byte>
               <p1node: 20 byte>
               <p2node: 20 byte>
               <linknode: 20 byte>
               <copyfromlen: 2 byte>
               <copyfrom>

    The revisions within each filesection are stored in topological order
    (newest first). If a given entry has a parent from another file (a copy)
    then p1node is the node from the other file, and copyfrom is the
    filepath of the other file.

.histidx
    The index file provides a mapping from filename to the file section in
    the histpack. In V1 it also contains sub-indexes for specific nodes
    within each file. It consists of three parts, the fanout, the file index
    and the node indexes.

    The file index is a list of index entries, sorted by filename hash (one
    per file section in the pack). Each entry has:

    - node (The 20 byte hash of the filename)
    - pack entry offset (The location of this file section in the histpack)
    - pack content size (The on-disk length of this file section's pack
                         data)
    - node index offset (The location of the file's node index in the index
                         file) [1]
    - node index size (the on-disk length of this file's node index) [1]

    The fanout is a quick lookup table to reduce the number of steps for
    bisecting the index. It is a series of 4 byte pointers to positions
    within the index. It has 2^16 entries, which corresponds to hash
    prefixes [00, 01, 02,..., FD, FE, FF]. Example: the pointer in slot 4F
    points to the index position of the first revision whose node starts
    with 4F. This saves log(2^16) bisect steps.

    dataidx = <fanouttable>
              <file count: 8 byte unsigned> [1]
              <fileindex>
              <node count: 8 byte unsigned> [1]
              [<nodeindex>,...] [1]
    fanouttable = [<index offset: 4 byte unsigned int>,...] (2^16 entries)

    fileindex = [<file index entry>,...]
    fileindexentry = <node: 20 byte>
                     <pack file section offset: 8 byte unsigned int>
                     <pack file section size: 8 byte unsigned int>
                     <node index offset: 4 byte unsigned int> [1]
                     <node index size: 4 byte unsigned int>   [1]
    nodeindex = <filename>[<node index entry>,...] [1]
    filename = <filename len : 2 byte unsigned int><filename value> [1]
    nodeindexentry = <node: 20 byte> [1]
                     <pack file node offset: 8 byte unsigned int> [1]

[1]: new in version 1.
rc�>�[TU]XUS9 0Ul0Ul0Ul[
Ul[Ul[Ul	[Ul
g)N)�version)rArB�files�entrylocations�fileentriesrCrDrErFrr~)r�uir�r�rGs    �rrB�mutablehistorypack.__init__�sL���
����w��7���
� ������'��� 1���.���$8��!rc��U=(d Sn[R"S[U55nURR	U/5RX#XEXv45 g)Nrr�)rrr&r^r��
setdefaultrK)rr/r%r0r1r2r3rws        rr4�mutablehistorypack.add�sJ���?�s���k�k�%��X��7�����#�#�H�b�1�8�8�
�r�[�;�	
rc�^�[UR5GH�nURUnURR5nUVs0sHoDSU_M
 snmU4Sjn[	[[R"SU5U555nURS[R"S[U55U[R"S[U554-5 [R[U5-S-n/nURRU05n	X7-n
UH.nX�U'STU-nUR!U5 U
[U5-
n
M0 S	R#U5n
U[U
5-
nURU
5 X74UR$U'[&R("U5R+5nX�R,U'GM� gs snf)
Nrc�>�TUupn  n/nU[R:waURU5 U[R:waURU5 U$r)rrcrK)r%r�r0r1�parents�entrymaps     �r�
parentfunc�-mutablehistorypack._write.<locals>.parentfunc�sW���%-�d�^�"��r�1�a�����*�1�1�1��N�N�2�&��*�1�1�1��N�N�2�&��rc3�*# �UH	oSv� M g7f)rNr6)�.0r�s  r�	<genexpr>�,mutablehistorypack._write.<locals>.<genexpr>�s���*A��A�Q�4��s�s%s%s%sr�r�rs%s%s%s%s%s%sr)�sortedr��packfp�tell�list�reversedr�	sortnodes�writerawrrr&r^r
r�r�r�rK�joinr�rr�r�r�)rr/r��sectionstartr�r��sortednodes�
sectionlen�
rawstrings�	locationsrfr%�raw�rawdatar�s              @r�_write�mutablehistorypack._write�s�����t�/�/�0�H��&�&�x�0�G��;�;�+�+�-�L�*1�1��A�!��a���1�H�
����)�)�*A��*A�:�N���K�
�M�M���K�K��s�8�}�5���K�K��s�;�'7�8���
�#�/�/�#�h�-�?�!�C�J��J��+�+�6�6�x��D�I�!�.�F�#��"(�$��%����6���!�!�#�&��#�c�(�"��	$��h�h�z�*�G��#�g�,�&�J��M�M�'�"�%1�#=�D�J�J�x� ��=�=��*�1�1�3�D�!%�L�L���k1��
2s�Gc�b>�UR(agUR5 [TU]
US9$)N)r�)�_closedr�rA�close)rr�rGs  �rr��mutablehistorypack.close�s'����<�<�����
��w�}�F�}�+�+rc	���URnURnURnURnSURR55n[
U5n[R"S5nUU-[U5U--U-n	/n
/nSnUGHup�nnURUn[U5U-n[R"UU
UUU	U5nUR[R"[R[U55U-5 U	[R[U5--
n	[
UR55H2unnUR[R"UUU55 US-
nM4 U	[U5U--
n	U
RU5 GM [R"SU5nSR!U
5U-SR!U5-$)Nc3�z# �UH1unup#[R"U5R5XU4v� M3 g7fr)rr�r�)r�r/rfrgs    rr��1mutablehistorypack.createindex.<locals>.<genexpr>	s7���
�,>�(��.�6��]�]�8�
$�
+�
+�
-�x��F�,>�s�9;s!Qrrr)rDrFrr~r��itemsr�rr�calcsizer^r�r&rKr
�FILENAMESTRUCTr�r�)r�
nodelocations�indexoffset�fileindexformat�fileindexlength�nodeindexformat�nodeindexlengthr��indexlensizerh�fileindexentries�nodeindexentries�	nodecountr�r/rfrgrir�r%�location�nodecountraws                      r�createindex�mutablehistorypack.createindexs����*�*���/�/���.�.���3�3��
�,0�J�J�,<�,<�,>�
���u�
�����u�-����
��5�z�O�+�
-��
�	������	�05�,�H��� �/�/��9�M��
�.��@�M��{�{�������
�H�
�#�#����I�4�4�c�(�m�D�x�O�
�
�y�5�5��H�
�E�E�O�"(��)<�)<�)>�"?���h� �'�'��K�K���x�@���Q��	�	#@�
�s�=�1�O�C�C�O��#�#�H�-�916�<�{�{�5�)�4���H�H�%�&��
��h�h�'�(�
)�	
r)rFrDr~rr�r�r�)rr)r7r8r9r:�__doc__r;r<r�rBr4r�r�rr=r�r�s@rr�r�_s=���I�V�K��J����
9�
�6&�p,�;
�;
rr�)#�
__future__rrr�mercurial.noderr�	mercurialr�mercurial.utilsr�r	r
rrCr�rEr�rr~rtr]r�r;r<r_rarbrdru�
basepackstorerr�mutablebasepackr�r6rr�<module>rs���"�
���%������O�O�L�1��
�
�������7���
�������
�
���
�
�
�
�����(
�x�-�-�(
�VF�(�#�#�F�R_
��1�1�_
r

Youez - 2016 - github.com/yon3zu
LinuXploit