ruạṛ
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>