File: //usr/lib/python3/dist-packages/mercurial/__pycache__/vfs.cpython-310.pyc
o
�]Lb�c � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZddlm Z ddl
mZmZm
Z
ddlmZmZmZm
Z
mZ dd� ZG d d
� d
e�ZG dd� de�ZeZG d
d� de�ZG dd� dee�ZeZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )� )�absolute_importN� )�_)�delattr�getattr�setattr)�encoding�error�pathutil�pycompat�utilc s4 � �fdd�}|� st �t ����� |� dS dS )z�Avoid file stat ambiguity forcibly
This function causes copying ``path`` file, if it is owned by
another (see issue5418 and issue5584 for detail).
c s$ t j���} | �� � p| ��� �S �N)r �filestat�frompath�isambig�
avoidambig)�newstat��oldstat�path� �//usr/lib/python3/dist-packages/mercurial/vfs.py�
checkandavoid&