Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/hgext/git/__pycache__/ |
Upload File : |
a �+�bU � @ sb d Z ddlmZ ddlmZmZmZ ddlmZ da dd� Z dd � Zd d� Zdd � Z eej�ZdS )z*utilities to assist in working with pygit2� )�absolute_import)�bin�hex�sha1nodeconstants)�pycompatNc C s6 t d u r2zdd la t j W n ttfy0 Y n0 t S )Nr )� pygit2_moduleZpygit2ZInvalidSpecError�ImportError�AttributeError� r r �7/usr/lib64/python3.9/site-packages/hgext/git/gitutil.py� get_pygit2 s r c C s: t � } d}| r,z | j}W n ty* Y n0 d|�d� S )NzN/As (pygit2 %s)zutf-8)r �__version__r �encode)�mod�vr r r �pygit2_version s r c C s t �t| ��S )z�Wrapper to convert a Mercurial binary node to a unicode hexlified node. pygit2 and sqlite both need nodes as strings, not bytes. )r Zsysstrr ��nr r r � togitnode$ s r c C s t jrt| �d��S t| �S )zOpposite of togitnode.�ascii)r Zispy3r r r r r r �fromgitnode- s r )�__doc__Z __future__r Zmercurial.noder r r Z mercurialr r r r r r ZnullidZnullgitr r r r �<module> s