Repository URL to install this package:
|
Version:
0.1.31-1 ▾
|
odigos-demo-inventory
/
opt
/
odigos-demo-inventory
/
site-packages
/
dulwich
/
__pycache__
/
repo.cpython-311.pyc
|
|---|
§
iµµh¤ù ã ór d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ e rddlmZmZ ddlmZ ddlmZmZmZmZmZm Z m!Z!m"Z"m#Z# dd l$m%Z% dd
l&m'Z'm(Z(m)Z)m*Z*m+Z+ ddl,m-Z-m.Z. ddl/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5 dd
l6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z> ddl?m@Z@ ddlAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZR dZSdZTdZUdZVdZWdZXdZYdZZdZ[dgeUgeUeVgeUeWgdgdggZ\dZ] G d de^¦ « Z_ G d d e^¦ « Z`d!eeaeaf fd"Zbd9d#d$d%eea d!ecfd&Zdd' Zed(eec d!e
eceec f fd)Zfd(e
eceec f d!ecfd*Zgd+ Zh G d, d-¦ « Zi G d. d/¦ « Zjd0 Zk G d1 d2e^¦ « Zl G d3 d4e^¦ « Zm G d5 d6ej¦ « Zn G d7 d8ej¦ « ZodS ):zRepository access.
This module contains the base class for git repositories
(BaseRepo) and an implementation which uses a repository on
local disk (Repo).
é N)ÚBytesIO)Ú
TYPE_CHECKINGÚAnyÚBinaryIOÚCallableÚDictÚ FrozenSetÚIterableÚListÚOptionalÚSetÚTupleÚUnioné ©Ú
ConfigFileÚ
StackedConfig©ÚIndex) ÚCommitErrorÚ HookErrorÚNoIndexPresentÚNotBlobErrorÚNotCommitErrorÚNotGitRepositoryÚNotTagErrorÚNotTreeErrorÚRefFormatError)ÚGitFile)ÚCommitMsgShellHookÚHookÚPostCommitShellHookÚPostReceiveShellHookÚPreCommitShellHook)ÚBlobNormalizerÚTreeBlobNormalizer)ÚDiskObjectStoreÚMemoryObjectStoreÚMissingObjectFinderÚObjectStoreGraphWalkerÚPackBasedObjectStoreÚpeel_sha)ÚBlobÚCommitÚObjectIDÚShaFileÚTagÚTreeÚcheck_hexshaÚvalid_hexsha)Úgenerate_unpacked_objects)ÚANNOTATED_TAG_SUFFIXÚLOCAL_BRANCH_PREFIXÚLOCAL_TAG_PREFIXÚSYMREFÚDictRefsContainerÚDiskRefsContainerÚInfoRefsContainerÚRefÚ
RefsContainerÚ_set_default_branchÚ _set_headÚ_set_origin_headÚcheck_ref_formatÚread_packed_refsÚread_packed_refs_with_peeledÚserialize_refsÚwrite_packed_refsz.gitÚobjectsÚrefsÚtagsÚheadsÚindexÚ commondirÚgitdirÚ worktreesÚbranchesÚhooksÚinfos masterc ó e Zd ZdZddZdS )ÚInvalidUserIdentityz2User identity is not of the format 'user <email>'.ÚreturnNc ó || _ d S ©N)Úidentity)ÚselfrW s ú7/usr/local/lib/python3.11/site-packages/dulwich/repo.pyÚ__init__zInvalidUserIdentity.__init__ s
Ø
ó ©rT N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__rZ © r[ rY rS rS s. Ø<Ð<ð!ð !ð !ð !ð !ð !r[ rS c ó e Zd ZdZdS )ÚDefaultIdentityNotFoundz)Default identity could not be determined.N)r^ r_ r` ra rb r[ rY rd rd s Ø3Ð3Ð3Ð3r[ rd rT c óB dd l } dD ]%}t j |¦ « }|r n&d } dd l} | t j ¦ « ¦ « }t |dd ¦ « r!|j d¦ « d }nd }||j
}n$# t $ r d }Y nw xY w# t $ r d }Y nw xY w|s|t d¦ « |}t j d¦ « }|*|t d¦ « | d| ¦ « }||fS )Nr )ÚLOGNAMEÚUSERÚLNAMEÚUSERNAMEÚgecosú,zno username foundÚEMAILú@)ÚsocketÚosÚenvironÚgetÚpwdÚgetpwuidÚgetuidÚgetattrÚpw_gecosÚsplitÚpw_nameÚKeyErrorÚImportErrorrd Úgethostname)rn ÚnameÚusernamerr ÚentryÚfullnameÚemails rY Ú_get_default_identityr s| ØMMMà8ð ð Ý:>> $Ñ'Ô'Øð ØEð ð ð)Ø
ð
)ØLL¥¤¡¤Ñ-Ô-Eõ ug tÑ,Ô,ð
Ø >×/Ò/°Ñ4Ô4°QÔ7àØÐØ =øøõ ð ð ð ØHHHð øøøøõ ð ð ð Øðøøøð ð ØÐÝ)Ð*=Ñ>Ô>Ð>ØÝJNN7Ñ#Ô#EØ}ØÐÝ)Ð*=Ñ>Ô>Ð>ØÐ4Ð4f×0Ò0Ñ2Ô2Ð4Ð4ØeÐÐs" °B+ µ&B ÂB(Â'B(Â+B:Â9B:Úconfigr Úkindc óª d}d}|rxt j d|z dz ¦ « }|| d¦ « }t j d|z dz ¦ « }|| d¦ « }|* | dd¦ « }n# t $ r d}Y nw xY w|* | dd¦ « }n# t $ r d}Y nw xY wt ¦ « \ }}|| d¦ « }|| d¦ « }| d ¦ « r| d
¦ « r
|dd
}|d
z |z d
z S )aa Determine the identity to use for new commits.
If kind is set, this first checks
GIT_${KIND}_NAME and GIT_${KIND}_EMAIL.
If those variables are not set, then it will fall back
to reading the user.name and user.email settings from
the specified configuration.
If that also fails, then it will fall back to using
the current users' identity as obtained from the host
system (e.g. the gecos field, $EMAIL, $USER@$(hostname -f).
Args:
kind: Optional kind to return identity for,
usually either "AUTHOR" or "COMMITTER".
Returns:
A user identity
NÚGIT_Ú_NAMEzutf-8Ú_EMAIL)Úuserr| r ó <ó >r éÿÿÿÿó <)ro rp rq Úencodery r Ú
startswithÚendswith)r r r r Úuser_ucÚemail_ucÚdefault_userÚ
default_emails rY Úget_user_identityr ¾ s ð* !DØ!EØð -Ý*.. ¨$¡°Ñ!8Ñ9Ô9ØÐØ>> 'Ñ*Ô*DÝ:>> &¨4¡-°(Ñ":Ñ;Ô;ØÐØOO GÑ,Ô,EØ|ð Ø::i¨Ñ0Ô0DDøÝð ð ð ØDDDð øøøà}ð ØJJy¨'Ñ2Ô2EEøÝð ð ð ØEEEð øøøå"7Ñ"9Ô"9ÑL-Ø|Ø×"Ò" 7Ñ+Ô+Ø}Ø×$Ò$ WÑ-Ô-Ø×ÒÑÔð %§.¢.°Ñ"6Ô"6ð ØadØ%<%Ñ $Ñ&Ð&s$ ÂB ÂB(Â'B(Â.C ÃCÃCc óÔ | dd¦ « \ }}n"# t $ r}t | ¦ « |d}~ww xY wd|vrt | ¦ « d| v sd| v rt | ¦ « dS )z³Verify that a user identity is formatted correctly.
Args:
identity: User identity bytestring
Raises:
InvalidUserIdentity: Raised when identity is invalid
r r Nr ó ó
)rw Ú
ValueErrorrS )rW ÚfstÚsndÚexcs rY Úcheck_user_identityr ð s ð5Ø>> %¨Ñ+Ô+SSøÝð 5ð 5ð 5Ý! (Ñ+Ô+°Ð4øøøøð5øøøà3Ý! (Ñ+Ô+Ð+ØÐÐE XÐ-Ð-Ý! (Ñ+Ô+Ð+ð .Ð-s
;¦6¶;Úgraftpointsc óê i }| D ]m}| dd¦ « }|d }t |¦ « dk r|d ¦ « }ng }|g|¢D ]}t |d¦ « |||<