Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]Lb5\ � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z ddlmZ ddlmZmZ ddlmZmZmZmZ e�d�ZejjZejjZejjZzejZW n eys dd � ZY nw ej Z ej!Z!ej"Z"ej#Z#d Z$e�%d �Z%e�%e%� ej&s�dmd d�Z'neZ'dd� Z(dd� Z)dd� Z*dd� Z+dd� Z,dd� Z-dd� Z.dndd�Z/dd � Z0d!d"� Z1d#d$� Z2d%d&� Z3d'd(� Z4d)d*� Z5d+d,� Z6d-d.� Z7d/d0� Z8d1d2� Z9d3d4� Z:d5d6� Z;ej<j=Z>e;Z?ej@r�d7d6� Z;ej<j=Z>d8d9� Z?ejAd:k�reBg d;�d<d=�ZCd>d6� Z;ej<jDZ>e;Z?d?d � Z0d@d"� Z1daEdAdB� ZFdCdD� ZGdEdF� ZHdGdH� ZIdIdJ� ZJdKdL� ZKe jLe jMhZNdMdN� ZOdOdP� ZPdodQdR�ZQdodSdT�ZRdUdV� ZSdWdX� ZTdYdZ� ZUd[d\� ZVdpd]d^�ZWd_d`� ZXG dadb� dbeY�ZZdcdd� Z[dedf� Z\dgdh� Z]didj� Z^dkdl� Z_dS )q� )�absolute_importN� )�_)�getattr�open)�encoding�error�policy�pycompat�osutilc C s t tjd| |f ��)Ns! hardlinks not supported: %s to %s)�OSError�errno�EINVAL)�src�dst� r �1/usr/lib/python3/dist-packages/mercurial/posix.py�oslink0 s �r F�r���c C s( t | ||d�}d|v r|�dtj� |S )N)�mode� buffering�ar )r �seek�os�SEEK_END)�namer r �fpr r r � posixfileA s r c C sR | � dd�}t|�dkrd| fS |d �d�}|r||d fS |d d |d fS )a� Same as posixpath.split, but faster >>> import posixpath >>> for f in [b'/absolute/path/to/file', ... b'relative/path/to/file', ... b'file_alone', ... b'path/to/directory/', ... b'/multiple/path//separators', ... b'/file_at_root', ... b'///multiple_leading_separators_at_root', ... b'']: ... assert split(f) == posixpath.split(f), f � /r � r )�rsplit�len�rstrip)�p�ht�nhr r r �splitP s r'