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 : /usr/lib64/python3.9/site-packages/hgext/convert/__pycache__/ |
Upload File : |
a �+�b�F � @ s| d dl mZmZ d dlZd dlmZ d dlmZmZ ddl m Z e jZdd� Zd d � Z G dd� de�ZG d d� de j�ZdS )� )�absolute_import�print_functionN)�_)�error�pycompat� )�commonc c sL t | �}|dkr>| d|� | |d d� fV | �dd|�}qd| fV dS )a Yield tuples with path split at '/', starting with the full path. No leading, trailing or double '/', please. >>> for x in rpairs(b'foo/bar/baz'): print(x) ('foo/bar/baz', '') ('foo/bar', 'baz') ('foo', 'bar/baz') ('.', 'foo/bar/baz') ���Nr � /r � .)�len�rfind)�path�i� r �;/usr/lib64/python3.9/site-packages/hgext/convert/filemap.py�rpairs s r c C s | du rdS t �| �S )z}We use posixpath.normpath to support cross-platform path format. However, it doesn't handle None input. So we wrap it up.N)� posixpath�normpath)r r r r � normalize% s r c @ sB e Zd ZdZddd�Zdd� Zdd� Zd d � Zdd� Zd d� Z dS )� filemapperz�Map and filter filenames when importing. A name can be mapped to itself, a new name, or None (omit from new repository).Nc C s>