403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.193
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/usr/lib/python3/dist-packages/mercurial/branching/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/lib/python3/dist-packages/mercurial/branching/__pycache__/rev_cache.cpython-313.pyc
�

6�h�C���SSKJr SSKrSSKrSSKJr SSKJrJrJ	r	J
r
 SSKJr \Rr
\Rr\RrSrS\-rS	\-rS
rS\-rS	\-rSr\
"\5rS\-rS
rSrSrSr"SS5r"SS5rg)�)�annotationsN�)�nullrev)�encoding�error�pycompat�util)�
stringutils-v2s	rbc-namessrbc-revss-v1s>4sI�@�i���lg�������?c�X�\rSrSrSrSr\S5rSrSr	Sr
SrS	rS
r
SrSrg
)�rbcrevs�5zLa byte string consisting of an immutable prefix followed by a mutable suffixc�.�Xl[5Ulg�N)�_prefix�	bytearray�_rest)�self�revss  �?/usr/lib/python3/dist-packages/mercurial/branching/rev_cache.py�__init__�rbcrevs.__init__8s�����[��
�c�B�[UR5nX[--
$r)�lenr�_rbcrecsize)r�sizes  r�
len_prefix�rbcrevs.len_prefix<s���4�<�<� ���k�)�*�*rc�F�UR[UR5-$r)rrr�rs r�__len__�rbcrevs.__len__As������T�Z�Z��0�0rc���XR:a/[[[R"UR
5U5$[[[R"UR5XR-
5$r)r�unpack_from�
_rbcrecfmtr	�bufferrr)r�	rbcrevidxs  r�
unpack_record�rbcrevs.unpack_recordDsR�����&��z�4�;�;�t�|�|�+D�i�P�P������D�J�J�'��O�O�+��
rc���URS:�aW[5nURSURUSS&URUR5 Xl[5Ulgg)Nr)rrr�extendr)r�entiretys  r�make_mutable�rbcrevs.make_mutableNsQ���?�?�Q�� �{�H��,�,�'8����9�H�Q�K��O�O�D�J�J�'�!�J�$�;�D�L�rc�B�UR5 URUS2	gr)r/r)r�poss  r�truncate�rbcrevs.truncateVs�������J�J�s�t�rc��XR:aUR5 URnXR-
nU[-n[	UR5U:aURRSU-5 [
[UUUU5$)N�)rr/rrrr-�	pack_intor')rr)�node�	branchidx�buf�start_offset�
end_offsets       rr7�rbcrevs.pack_intoZs|�����&������j�j�� �?�?�2��!�K�/�
��t�z�z�?�Z�'�
�J�J���e�j�0�1�������
�	
rc�8�URRU5$r)rr-)r�	extensions  rr-�rbcrevs.extendps���z�z� � ��+�+rc�<�XR:ag[5nURU[X R5USS&UR	UR
XR-
X R-
5 U$UR
XR-
X R-
$r)rrr�minr-r)r�begin�end�accs    r�slice�
rbcrevs.slicess~���?�?�"��+�C��\�\�%�#�c�?�?�*C�D�C��F��J�J��
�
�5�?�?�2�S�?�?�5J�K�
��J��z�z�%�/�/�1�C�/�/�4I�J�Jr)rrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�propertyrr#r*r/r3r7r-rF�__static_attributes__�rrrr5sB��V�!��+��+�1��'��
�,,�Krrc��\rSrSrSrSSjrSrSSjr\RS5r
SrSrS	r
S
rSSjrS
rSrSrg)�revbranchcache�~aQPersistent cache, mapping from revision number to branch name and close.
This is a low level cache, independent of filtering.

Branch names are stored in rbc-names in internal encoding separated by 0.
rbc-names is append-only, and each branch name is only stored once and will
thus have a unique index.

The branch info for each revision is stored in rbc-revs as constant size
records. The whole file is read into memory, but it is only 'parsed' on
demand. The file is usually append-only but will be truncated if repo
modification is detected.
The record for each revision contains the first 4 bytes of the
corresponding node hash, and the record is only used if it still matches.
Even a completely trashed rbc-revs fill thus still give the right result
while converging towards full recovery ... assuming no incorrectly matching
node hashes.
The record also contains 4 bytes where 31 bits contains the index of the
branch and the last bit indicate that it is a branch close commit.
The usage pattern for rbc-revs is thus somewhat similar to 00changelog.i
and will grow with it but be 1/8th of its size.
c��URbeXl/Ul[[	55UlSUlSUlSnURR[5n[U5UlU(a;URS5Vs/sHn[R "U5PM snUlUR(a�UR&R)SS[*R,(+S9nU(d�UR[
5nU(aOURR/[
5(a+[0R2"[0R4"U55nOUR5nSSS5 O.UR[65nUR5nSSS5 [W5Ul[?[UR
5[@-[URB55Ul"URDS:Xa/Ul[UR5Ul#g![a, URR[5nSnSUlGNf=fs snf![a U(aUR"UlGN�f=f!,(df   N�=f!,(df   GN=f![a=n	UR&R9S[:R<"U	5-5 Sn	A	GN<Sn	A	ff=f)	NrFTr6sstoragesrevbranchcache.mmap)�defaults(couldn't read revision branch cache: %s
)$�
filtername�_repo�_namesrr�_rbcrevs�
_rbcsnameslen�_force_overwrite�cachevfs�read�	_rbcnames�OSError�_rbc_legacy_namesr�splitr�tolocal�_branchinfo�
branchinfo�ui�
configboolr�	iswindows�is_mmap_safer	r(�mmapread�_rbc_legacy_revs�debugr
�forcebytestrrBr�	changelog�_rbcrevslen�_rbcnamescount)
r�repo�readonly�v1_fallback�bndata�bn�usemmap�fp�data�insts
          rr�revbranchcache.__init__�sX�����&�&�&��
�����	��,��
���� %�����	3�	
-����+�+�I�6��"%�V��D���39�<�<��3F��3F�R�H�$�$�R�(�3F�����;�;�!
��'�'�,�,��*� (� 2� 2�2�-���
#����x�0�B�"�t�}�}�'A�'A�(�'K�'K�#'�;�;�t�}�}�R�/@�#A�D�#%�7�7�9�D�	1�0����'7�8�B�!�w�w�y��9� '��
��
����
�
��+�-�s�4�>�>�/B�
������q� ��D�K�!�$�+�+�.����w�
-�
���+�+�,=�>��"��(,��%�
-�����	3��"&�"2�"2����	3��*1�0��9�8���
����
�
�@� �-�-�d�3�4����
�s��H2�&*I0� I+�0I0�
A
J<�A'J�;J<�J*�*J<�22I(�$I0�'I(�(I0�0"J�J�
J'�#J<�*
J9�4J<�<
L�2K>�>Lc��SUlURSS2	SUl[URR
5Ul[[UR[-55Ul
[R"US5 SUl
g)Nrs
_namesreverseT)rYrWrnrrVrlrmrrrrXr	�clearcachedpropertyrZr"s r�_clear�revbranchcache._clear�si������K�K��N�����t�z�z�3�3�4����	�$�*:�*:�[�*H� I�J��
�� � ��'7�8� $��rc�T�XlURRU5 SUlg)NT)rmrXr3rZ)r�revs  r�
invalidate�revbranchcache.invalidate�s"�����
�
���s�#� $��rc�b�[UR5VVs0sHupX!_M	 snn$s snnfr)�	enumeraterW)r�r�bs   r�
_namesreverse�revbranchcache._namesreverse�s)��!*�4�;�;�!7�8�!7�����!7�8�8��8s�+c�<�URRnU[-nU[:XaUR	U5$[UR5U[-:aURU5$URU5S[nURRU5upV[U[-5nU(a	U[-nUS:XaO~XT:XaURUU4$URR R#SU-5 U[-nURR'U5 [)UR*U5UlURU5$![a8 URR R#S5 UR%5 NRf=f)zOReturn branch name and close flag for rev, using and updating
persistent cache.NssRreferenced branch names not found - rebuilding revision branch cache from scratch
sPhistory modification detected - truncating revision branch cache to revision %d
)rVrlrrrcrrXrbr8�_rbcnodelenr*�bool�
_rbccloseflag�_rbcbranchidxmaskrW�
IndexErrorrdrjr{r3rBrm)	rr~rlr)�reponode�	cachenoder9�closer3s	         rrc�revbranchcache.branchinfo�sy���J�J�(�(�	��+�%�	��'�>��'�'��,�,��t�}�}��	�K� 7�7��#�#�C�(�(��>�>�#�&�|��4��#�}�}�:�:�9�E��	��Y��.�/����*�*�I���#��
�
"�
��{�{�9�-�u�4�4�
�J�J�M�M���:�<?�@�
�!�;�.�H��M�M�"�"�8�,�"�4�#3�#3�X�>�D������$�$��%�
��
�
�
�
�#�#�J�����
�

�s�E�?F�Fc�z�URRnURU5up4X0R;aURUnO>[	UR
5nUR
R
U5 XPRU'URU5nU(a	U[-nURXU5 X44$)z7Retrieve branch info from changelog and update _rbcrevs)
rVrlrcr�rrW�appendr8r��
_setcachedata)rr~rlr�r�r9r�s       rrb�revbranchcache._branchinfos����J�J�(�(�	��'�'��,����"�"�"��*�*�1�-�I��D�K�K�(�I��K�K���q�!�$-���q�!��>�>�#�&�����&�I����3�)�4��x�rc��URup4X0R;aURUnO>[UR5nURR	U5 XPRU'U(a	U[
-nUR
XRRRU5U5 S[U5;aU?gg)z%add new data information to the cachercN)rcr�rrWr�r�r�rVrlr8�vars)rr~�changelogrevision�branchr�r9s      r�setdata�revbranchcache.setdata-s���)�4�4�
���'�'�'��*�*�6�2�I��D�K�K�(�I��K�K���v�&�)2���v�&����&�I����3�
�
� 4� 4� 9� 9�#� >�	�J��4��:�%���&rc��U[:XagU[-nURRXBU5 [	UR
U5UlURR5nU(aURSUR5 gg)z:Writes the node's branch data to the in-memory cache data.Nswrite-revbranchcache)
rrrXr7rBrmrV�currenttransaction�addfinalize�write)rr~r8r9r)�trs      rr��revbranchcache._setcachedataCsl���'�>���+�%�	��
�
���	��;��t�/�/��5���
�Z�Z�
*�
*�
,��
��N�N�2�D�J�J�?�rNc���URnSnSnUR(d#UR[UR5:a"URSS9nSnUR
U5 UR[-nUR(dU[UR5:wa%SnUcURSS9nURX%5 UbUR'5 gg![[R[R4a>nURR!SU["R$"U54-5 SnANwSnAff=f!UbUR'5 ff=f)z!Save branch cache if it is dirty.NrF)�waits namess+couldn't write revision branch cache%s: %s
)rVrZrnrrW�wlock�_writenamesrmrrX�
_writerevsr^r�Abort�	LockErrorrdrjr
rk�release)rr�ror��step�startrws       rr��revbranchcache.writeOs+���z�z������	 ��$�$��(;�(;�c�$�+�+�>N�(N��
�
��
�.�� ��� � ��&��$�$�{�2�E��$�$���T�]�]�1C�(C����=� �J�J�E�J�2�E�����,�� ��
�
��!��
����e�o�o�6�	��G�G�M�M�?���0�0��6�7�8�
�
��	��� ��
�
��!�s*�B8C�)E�4E�<E	�E�E	�	Ec��^�SnUR(aSUlSUlUR(dURS:wa�URR	[
S5nUR
5nX0R:XaURS5 O_UR5 UR(aSnOUS:�aSnOSnURRU[
-5 SUlSUlURS:Xa>URR[SS	9 URR	[
S
5nURURSn[R mSR#U4SjU55nURU5 UR
5UlUbUR5 [%UR5Ulg!UbUR5 ff=f)z,write the new branch names to revbranchcacheNrsabr6sresetting content of %s
s%s changed - rewriting it
s%s is missing - rewriting it
T)�
ignoremissing�wbc3�4># �UH
nT"U5v� M g7frrO)�.0r��
from_locals  �r�	<genexpr>�-revbranchcache._writenames.<locals>.<genexpr>�s����;�U��j��m�m�U�s�)rZrYrnr[�openr]�tellr�r�rdrjrm�
unlinkpathrXrWr�	fromlocal�joinr)rro�f�current_size�dbg�namesrvr�s       @rr��revbranchcache._writenamesls������� � �!"�D��"#�D��	��$�$��(;�(;�q�(@��M�M�&�&�y�%�8�� �v�v�x���#5�#5�5��G�G�E�N��G�G�I��,�,�:��%��)�<��?���G�G�M�M�#�	�/�2�*+�D�'�'(�D�$��"�"�a�'��
�
�(�(���(�F��M�M�&�&�y�%�8���K�K�� 3� 3� 5�6�E�!�+�+�J��:�:�;�U�;�;�D�
�G�G�D�M�!"����D���}����	�!�$�+�+�.�����}����	��s�F	G�G1c�J�[[UR5[UR5[-5nU[-nUR
(aSn[U[--nURR[S5nSSS5 URR[S5nURS[R5 UR5nXb:aSnXb:wa�U[-n[XF5U-
n[XF5U-
U:�a'SnS[-n	URRU	5 OzUS:�aCSn	X�U-
U[4-n	XF:a
Sn
X�U-
-n
X�-
n	U	S-
n	URRU	5 O1X$:XdeS	n	U	[Xb-
4-n	URRU	5 US:�a<URU5 UR!URR#X$55 ObUR%5 URR[S
SS9nUR!URR#X$55 SSS5 SSS5 X0lS
Ulg!,(df   GN�=f!,(df   N6=f!,(df   N?=f)z$write the new revs to revbranchcachersa+bNsr+bsresetting content of cache/%s
s(overwriting %d bytes from %d in cache/%ss leaving (%d trailing bytes)�
s,cache/%s contains %d unknown trailing bytes
r�T)�
atomictempF)rBrrlrXrrZr[r��seek�os�SEEK_ENDr��
REWRITE_RATIO�maxrdrjr�rFr�rm)rror�rrDr�r��	threshold�overwrittenr��extra�rev_files            rr��revbranchcache._writerevs�s7���3�t�~�~�&��D�M�M�(:�k�(I�J���[� ��� � ��E��u��3�4��
�]�]�
�
��&�
1�Q��2�
�]�]�
�
��&�
1�Q�
�F�F�1�b�k�k�"��6�6�8�L��#����$�(�=�8�	�!�#�4�u�<����*�U�2�y�@��E�<�x�G�C��G�G�M�M�#�&� �1�_�E�C��5�0�%��B�B�C��)� ?����!3�3������5�L�C��G�G�M�M�#�&�!�<�'�<�J�C��H�l�&:�;�;�C��G�G�M�M�#�&��q�y����u�
�����
�
�+�+�E�7�8����	��]�]�'�'���#�(����N�N�4�=�=�#6�#6�u�#B�C��E2�P �� %���W2�
1��H���E2�
1�s1�I1�0E8J�(+J�J�1
J�
J	�
J�
J")rZrWrnrXrmrYrVrc)T)rr)rHrIrJrKrLrr{rr	�
propertycacher�rcrbr�r�r�r�r�rNrOrrrQrQ~sX���,F/�R%�%�

���9��9�+%�Z�  �,
@� �:#/�J6&rrQ)�
__future__rr��structr8r�rrrr	�utilsr
�calcsizer7r&�_rbcversionr]rX�_rbc_legacy_versionr_rir'r�
_rbcminincr�r�r�r�rrQrOrr�<module>r�s���
#�	�
������?�?�����	�� � �����;�&�	���$���� �#6�6���!4�4��
�
��z�"��
�+�
�
������
��
�FK�FK�RI&�I&r

Youez - 2016 - github.com/yon3zu
LinuXploit