e,.W : d dl m Z d dlZd dlZd dlmZ d dlmZmZm Z d dl mZmZm Z mZmZmZmZ d dlmZ d dlmZmZmZmZmZ d dlmZ erd dlmZ d d lm Z d d l!m"Z"m#Z# ddgZ$ G d dee%e%eee&e&f e%f Z' G d dee' e Z(dS ) )mmapN)defenc) parse_dateSerializablealtz_to_utctz_str)ActorLockedFDLockFileassure_directory_existsto_native_path bin_to_hexfile_contents_ro_filepath)IteratorListTupleUnion TYPE_CHECKING)PathLike)SymbolicReference)BytesIO)GitConfigParserSectionConstraintRefLogRefLogEntryc > e Zd ZdZ ej d ZdZdefdZ defdZ edefd Zedefd Z edefd Zedeeef fd Zedefd Zeded edededededd fd Zededd fd ZdS )r z:Named tuple allowing easy access to the revlog data fieldsz^[0-9A-Fa-f]{40}$ returnc * | S )z0Representation of ourselves in git reflog format)formatselfs ^/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/git/refs/log.py__repr__zRefLogEntry.__repr__/ s {{}} c | j }| j }d | j | j |j |j |d t |d | j S )z8:return: a string suitable to be placed in a reflog filez{} {} {} <{}> {!s} {} {} r ) actortimer oldhexsha newhexshanameemailr message)r! actr( s r" r zRefLogEntry.format3 sW jy,33NNHIGd1g&&L r$ c | d S )z=The hexsha to the commit the ref pointed to before the changer r r s r" r) zRefLogEntry.oldhexshaA Awr$ c | d S )z@The hexsha to the commit the ref now points to, after the changer&