U
ʗReF @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlm Z m
Z
mZ d dlm
Z
mZ d dlmZmZmZ d dlmZ d dlmZmZmZmZmZmZmZ ejjZejjZe e!Z"e#dZ$e#dZ%e#d ej&Z'e(e)d
ddZ*G d
d deZ+e,e+ dS ) N)ListOptionalTuple)
BadCommandInstallationError)
HiddenTextdisplay_pathhide_url)make_command)AuthInfoRemoteNotFoundErrorRemoteNotValidError
RevOptionsVersionControl(find_path_to_project_root_from_repo_rootvcsz(^git version (\d+)\.(\d+)(?:\.(\d+))?.*$z^[a-fA-F0-9]{40}$a/ ^
# Optional user, e.g. 'git@'
(\w+@)?
# Server, e.g. 'github.com'.
([^/:]+):
# The server-side path. e.g. 'user/project.git'. Must start with an
# alphanumeric character so as not to be confusable with a Windows paths
# like 'C:/foo/bar' or 'C:\foo\bar'.
(\w[^:]*)
$)shareturnc C s t t| S N)bool
HASH_REGEXmatch)r r /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/vcs/git.pylooks_like_hash7 s r c s e Zd ZdZdZdZdZdZdZe e
ee
ddd Ze
e
e
d
ddZeed
f dddZee
ee
dddZee
e
eee
e
f dddZee
e
e
dddZee
eeedddZee
ee
e
dddZe
eeedd d!d"Ze
eeddd#d$Ze
eeddd%d&Zee
e
dd'd(Ze e
e
d)d*d+Zee
e
e
d,d-d.Z ed