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 �+�b�- � @ s d Z ddlmZ ddlZddlmZ ddlmZmZm Z m Z mZmZm Z mZmZ ddlmZmZmZmZ dZi Ze�e�Zed d dd� ejZG d d� de�Zdd� ZG dd� de�Zdd� Zdd� ZdZ G dd� de�Z!d#dd�Z"dd� Z#dd � Z$d!d"� Z%dS )$z�grant Mercurial the ability to operate on Git repositories. (EXPERIMENTAL) This is currently super experimental. It probably will consume your firstborn a la Rumpelstiltskin, etc. � )�absolute_importN)�_) �commands�error� extensions� localrepo�pycompat� registrar�scmutil�store�util� )�dirstate�gitlog�gitutil�indexs ships-with-hg-core� git� log-index-cache-missF)�defaultc @ sL e Zd Zdd� Zejdd� �Zdd� Zdd� Zd d � Z dd� Z ddd�Zd S )�gitstorec C sf ||�| _ | j | _| j j| _t�| j �| _t�� � t j�t j�|dd���| _ dd� | _dd� | _d S )N� ..� .gitc _ s d S �N� )�args�kwargsr r �8/usr/lib64/python3.9/site-packages/hgext/git/__init__.py�<lambda>? � z#gitstore.__init__.<locals>.<lambda>c S s d S r r )�xr r r r @ r )�vfs�opener�base�pathr Z _calcmodeZ createmoder � get_pygit2Z Repository�os�normpath�join�git�_progress_factory�_logfn)�selfr# �vfstyper r r �__init__4 s � zgitstore.__init__c C s t �| j| j| j�S r )r Z get_indexr( r* r) �r+ r r r �_dbB s zgitstore._dbc C s\ |dv rt j�| jd�S |dkr0t j�| jd�S |dv rLt j�| jdd|�S td| ��d S ) z�Fake store.join method for git repositories. For the most part, store.join is used for @storecache decorators to invalidate caches when various files change. We'll map the ones we care about, and ignore the rest. )s 00changelog.is 00manifest.is HEADs locks hgit-bogus-lock)s obsstores phaserootss narrowspecs bookmarksr � .hgs Need to pick file for %s.N)r% r# r'