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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h�3��2�SSKJr SSKrSSKrSSKrSSKJr SSKJr SSK	J
r
JrJr SSK
Jr \R"5rSrS	\-rS
rSr\(a&\R*\R,-\R.-rSrS
rSrSSjrSS4SjrSS4Sjrg)�)�annotationsN)�_)�sha1nodeconstants)�encoding�error�pycompat�)�gitutil�a�
CREATE TABLE refs (
  -- node and name are unique together. There may be more than one name for
  -- a given node, and there may be no name at all for a given node (in the
  -- case of an anonymous hg head).
  node TEXT NOT NULL,
  name TEXT
);

-- The "possible heads" of the repository, which we use to figure out
-- if we need to re-walk the changelog.
CREATE TABLE possible_heads (
  node TEXT NOT NULL
);

CREATE UNIQUE INDEX possible_heads_idx ON possible_heads(node);

-- The topological heads of the changelog, which hg depends on.
CREATE TABLE heads (
  node TEXT NOT NULL
);

-- A total ordering of the changelog
CREATE TABLE changelog (
  rev INTEGER NOT NULL PRIMARY KEY,
  node TEXT NOT NULL,
  p1 TEXT,
  p2 TEXT,
  synthetic TEXT,
  changedfiles BOOLEAN
);

CREATE UNIQUE INDEX changelog_node_idx ON changelog(node);
CREATE UNIQUE INDEX changelog_node_rev_idx ON changelog(rev, node);

-- Changed files for each commit, which lets us dynamically build
-- filelogs.
CREATE TABLE changedfiles (
  node TEXT NOT NULL,
  filename TEXT NOT NULL,
  -- 40 zeroes for deletions
  filenode TEXT NOT NULL,
-- to handle filelog parentage:
  p1node TEXT,
  p1filenode TEXT,
  p2node TEXT,
  p2filenode TEXT
);

CREATE INDEX changedfiles_nodes_idx
  ON changedfiles(node);

-- Cached values to improve performance
CREATE TABLE cache (
  ncommits INTEGER
);
INSERT INTO cache (ncommits) VALUES (NULL);

PRAGMA user_version=%d
c���[R"[R"U55n[UlUR
S5R5SnUS:XaL[RS5H"nUR
UR55 M$ UR5 O*U[:XaO[R"[S55eUR
S5 U$)NzPRAGMA user_versionr�;s(sqlite database has unrecognized versionzPRAGMA journal_mode=WAL)�sqlite3�connectr�strfromlocal�bytes�text_factory�execute�fetchone�_SCHEMA�split�strip�commit�_CURRENT_SCHEMA_VERSIONr�Abortr)�path�db�res�	statements    �1/usr/lib/python3/dist-packages/hgext/git/index.py�	_createdbr Ws���
����.�.�t�4�	5�B��B�O�
�*�*�*�
+�
4�
4�
6�q�
9�C��a�x� ���s�+�I��J�J�y���(�)�,�	�	�	��	�'�	'���k�k�!�G�H�I�I��J�J�(�)�
�I��i c���[U[5(dS[U5-5e[U[5(dS[U5-5eURSX$45Vs1sHnUSR	S5iM nnURU[5nUH5nURRU;dMURRs $ [R"SX$U45es snf)azFind the nearest ancestor that introduces a file node.

Args:
  db: a handle to our sqlite database.
  gitrepo: A pygit2.Repository instance.
  file_path: the path of a file in the repo
  walk_start: a pygit2.Oid that is a commit where we should start walking
              for our nearest ancestor.

Returns:
  A hexlified SHA that is the commit ID of the next-nearest parent.
zfile_path must be str, got %rzfilenode must be str, got %rzASELECT node FROM changedfiles WHERE filename = ? AND filenode = ?r�asciiz8Unable to find introducing commit for %s node %s from %s)�
isinstance�str�typer�decode�walk�
_OUR_ORDER�id�hexr�ProgrammingError)	r�gitrepo�	file_path�
walk_start�filenode�row�parent_options�inner_walker�ws	         r�'_find_nearest_ancestor_introducing_noder6}s���i��%�%��'F���J�(��%��h��$�$��&D�t��H�'��$�
�:�:�
2�
�!�
��
�C�	�A��
�
�g��
����<�<�
�J�7�L�
���4�4�8�8�~�%��4�4�8�8�O���
 �
 �B�	�j�)����s�&C0c
�n�[U[5(dS[U5-5e[U[5(dS[U5-5e[R"X$4/5nU(Ga�UR5upgXn/n	URH�n
U
RnURS5HnXURnM [XX:RURR5n
U	RX�RR45 M� [R=n=n=nnU	HUunn[!UR#SUUU45R%5S5nUS:XdM=UceURUU45 MW U	(aU	Sup�['U	5S:XaU	Sunn['U	5S:�a[(R*"S	5eUR#S
X�UUURRX745 U(aGM�UR-5 g![a  GM�f=f)arGiven a starting commit and path, fill in a filelog's parent pointers.

Args:
  gitrepo: a pygit2.Repository
  db: a handle to our sqlite database
  startcommit: a hexlified node id for the commit to start at
  path: the path of the file whose parent pointers we should fill in.
  filenode: the hexlified node id of the file at startcommit

TODO: make filenode optional
zstartcommit must be str, got %rz!startfilenode must be str, got %r�/zfSELECT COUNT(*) FROM changedfiles WHERE node = ? AND filename = ? AND filenode = ? AND p1node NOT NULLrN�r	s'git support can't handle octopus mergeszUPDATE changedfiles SET p1node = ?, p1filenode = ?, p2node = ?, p2filenode = ? WHERE node = ? AND filename = ? AND filenode = ?)r%r&r'�collections�deque�popleft�parents�treerr+�KeyErrorr6r,�appendr
�nullgit�intrr�lenrr-r)r.r�startcommitr�
startfilenode�visit�cnoder1rr=�parent�t�comp�
introducer�p1node�p1fnode�p2node�p2fnode�par�parfnode�founds                     r�fill_in_filelogrS�s0����S���=�(�4��+<�<�=����s���A�*�T�-�-@�@�A��
����;�<�=�E�
��-�-�/���������n�n�F����A��
�
�3�����$��
�
�+�A�(�E���y�y�!�$�$�(�(��
����
�D�D�H�H�5�6�%�/6�o�o�=��=��=�6�G�$�M�C����
�
�&��$��)�	�
�(�*�Q� ��E���z���&�����c�8�_�-�%��%�a�j�O�F��w�<�1��%�a�j�O�F�G��w�<�!���(�(�:��
�	�
�
�
?��f�g�v�y�y�}�}�d�M�		
�K�%�V�I�I�K��E ����s�9H$�$
H4�3H4c�B�URSU45R5SnU(agXn0nUR(a#URSRROSnUb)URXcRR[S9nOURRS[S9nSU5nUV	s0sHNn	U	RR[R:wdM-U	RU	RR_MP nn	UR5H1up�URSURRX�SSSS45 M3 URSURR45 U(aUR5 ggs sn	f)	Nz/SELECT changedfiles FROM changelog WHERE node=?r)�flagsT)�swaprUc3�L# �UHoRRv� M g7f�N)�delta�new_file)�.0�ps  r�	<genexpr>�%_index_repo_commit.<locals>.<genexpr>�s���4�8�a���!�!�8�s�"$zwINSERT INTO changedfiles (node, filename, filenode, p1node, p1filenode, p2node, p2filenode) VALUES(?, ?, ?, ?, ?, ?, ?)z3UPDATE changelog SET changedfiles=TRUE WHERE node=?)rrr=r+r,�diff�_DIFF_FLAGSr>�diff_to_tree�rawr�nullidr�itemsr)r.r�noder�already_done�files�p1�patchgen�	new_files�nfr\�ns            r�_index_repo_commitrm�sb���:�:�9�D�7���h�j���L���
�]�F��E�
&,�^�^�����	�	�	�	!�	!��B�	�~��<�<��I�I�M�M��<�E���;�;�+�+��[�+�I��4�8�4�I��
��B�
�5�5�9�9�)�0�0�0�	�����������
�
�
���
���	�
�
�
6��Y�Y�]�]�A�$��d�D�9�		
�	��J�J�=��	�	�
�
�?O���
�	�	����'
s�,F�0%Fc��grXr"��xs r�<lambda>rqs��Dr!c��grXr"��args�kwargss  rrqrqs��Tr!c	�	�UR5n[5nU"S5n[U5H�upxUbURU5 UR	S5(dDUR	S5(d.UR	S5(dUR	S5(dMsURU5R
[R5n	URU	R5 M� URS5V
s1sHn
[R"U
S5iM nn
SnUV
s1sHo�RiM nn
X�:XagU"S5 UH/n	UcUR!U	["5nMUR%U	5 M1 URS	5 UbUR'5 U"S
5nSnUGH�nUbURU5 [(R*=nn[-UR.5S::a�UR.(a#UR.SRRn[-UR.5S:Xa#UR.S
RRnUS
-
nURSXRRUU45 M�[1UR.5nUR3S5RRnU(dGM'US
-
n[-U5S
:XaURRnSnOSU-nURRnUR3S5RRnURSUUUUU45 UnU(aM�GM� URS5 URS5 UR5SUVs/sHnUR4PM sn5 URS5 URS5 UbUR'5 U"S5nURS5Vs/sHnUSR7S5PM nn[U5H%up}UbURU5 [9XU
5 M' URS5 UR;5 UbUR'5 gg![a GM|f=fs sn
fs sn
fs snfs snf)Ns
indexing refszrefs/heads/z
refs/tags/z
refs/remotes/zrefs/hg/zSELECT node FROM possible_headsrs$heads mismatch, rebuilding dagcache
zDELETE FROM changelogsindexing commits���r9r	zbINSERT INTO changelog (rev, node, p1, p2, synthetic, changedfiles) VALUES(?, ?, ?, ?, NULL, FALSE)z%040xz_INSERT INTO changelog (rev, node, p1, p2, synthetic, changedfiles) VALUES(?, ?, ?, ?, ?, FALSE)zDELETE FROM headszDELETE FROM possible_headsz+INSERT INTO possible_heads (node) VALUES(?)aB
    INSERT INTO heads (node)
        SELECT node FROM possible_heads WHERE
            node NOT IN (
                SELECT DISTINCT possible_heads.node FROM changelog, possible_heads WHERE
                    changelog.p1 = possible_heads.node OR
                    changelog.p2 = possible_heads.node
            )
    zu
    UPDATE changelog SET changedfiles=TRUE WHERE node IN (
        SELECT DISTINCT node FROM changedfiles
    )
    sindexing head fileszSELECT * FROM headsr$zN
    UPDATE cache SET
        ncommits = (SELECT COUNT(1) FROM changelog)
    )�listall_references�set�	enumerate�update�
startswith�lookup_reference�peel�pygit2�GIT_OBJ_COMMIT�
ValueError�addr+rr�sysstrr,r)r*�push�completer
rArCr=�list�pop�executemanyr(rmr)r.r�logfn�progress_factory�all_refs�possible_heads�prog�pos�ref�startrp�cache_heads�walker�h�cur_cache_headsrrh�p2r=�this�synth�hidr2�headss                        r�_index_repor�s)���)�)�+�H��U�N��,�-�D��h�'������K�K����N�N�=�)�)��~�~�l�+�+��~�~�o�.�.��~�~�j�)�)��	��,�,�S�1�6�6�v�7L�7L�M�E�	���5�8�8�$�(�4���=�>��>�A�	����!���>����F�&4�5�n��u�u�n�O�5��%��	�
2�3����>��\�\�%��4�F��K�K���	 ��J�J�&�'����
�
���/�0�D�
�C������K�K����/�/�!��R��v�~�~��!�#��~�~��^�^�A�&�)�)�-�-���6�>�>�"�a�'��^�^�A�&�)�)�-�-���1�H�C��J�J�t��i�i�m�m�R��,�
�
�6�>�>�*�G����Q��"�"�&�&�B��'��q����w�<�1�$�!�9�9�=�=�D� �E�"�S�=�D�"�I�I�M�M�E��[�[��^�&�&�*�*���
�
�u��$��B��.��
��#�'�%�J�J�J�"�#��J�J�+�,��N�N�5�-�.�~��#�'�'��~�.���J�J�	�
��J�J�	�����
�
���2�3�D�*,�*�*�5J�*K�
�*K�3��A��
�
�g��*K�
�
��E�"������K�K����7��*�#�
�J�J�	���I�I�K����
�
����u�	��	����
6��|	/��6
s*�".R�#R.�-R3�$R8
�R=�
R+�*R+c��grXr"ros rrqrq�s��Tr!c��grXr"rss  rrqrq�s��Dr!c�h�[RR[R"UR5SSS5n[RRU5(d[R"U5 [RRUS5n[U5n[XX5 U$)Ns..s.hgscachesgit-commits.sqlite)	�osr�joinr�fsencode�exists�makedirsr r�)r.r�r��	cachepath�dbpathrs      r�	get_indexr��s����������'�,�,�'�����I��7�7�>�>�)�$�$�
���I��
�W�W�\�\�)�%:�
;�F�	�6�	�B���U�5�
�Ir!)F)�
__future__rr:r�r�mercurial.i18nr�mercurial.noder�	mercurialrrr�r
�
get_pygit2rrrr r*�GIT_SORT_TOPOLOGICAL�
GIT_SORT_TIME�GIT_SORT_REVERSEr`r6rSrmr�r�r"r!r�<module>r�s���"��	���,����
�	�	�	����;�x�y<��B�6�
�	��#�#�
�
�
�	�
�
!�
!�	"����$�N>�B'�Z�1�	Q�j"�4P�
r!

Youez - 2016 - github.com/yon3zu
LinuXploit