403Webshell
Server IP : 74.208.236.52  /  Your IP : 216.73.217.98
Web Server : Apache
System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64
User : u44043973 ( 5404757)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

6�h����4�SSKJr SSKrSSKrSSKJrJrJrJrJ	r	 SSK
Jr SSKJ
r
JrJrJr SSKJrJrJrJr SSKJr SS	KJr S
rSrSrS
rSrSr /SQr!Sr"SSjr#SSjr$"SS\RJ\RL5r\"S5r'Sr(SSjr)g)�)�annotationsN)�Callable�
Collection�List�Optional�Union�)�_)�CallbackCategoryT�HgPathT�TransactionT�VfsKeyT)�encoding�error�pycompat�util)�
stringutil)�transaction�sallsprefinalizespostfinalizec�^�U4SjnU$)Nc�h>�URS:Xa[R"S5eT"U/UQ70UD6$)Nrs;cannot use transaction when it is already committed/aborted)�_countr�ProgrammingError)�self�args�kwds�funcs   ��7/usr/lib/python3/dist-packages/mercurial/transaction.py�_active�active.<locals>._active3s<����;�;�!���(�(�N��
��D�(�4�(�4�(�(��)rrs` r�activer#2s���)��Nr!�%s.backupfiles))�stores
%s.narrowspec)�plains%s.narrowspec.dirstate)r&s	%s.branch)r&s%s.bookmarks)r%s
%s.phaseroots)r&s%s.dirstate)r&s%s.desc)r%s%sc�^�[RRURS55$)z4Return True if the repo has an abandoned transactionsjournal)�os�path�exists�sjoin)�repos r�has_abandoned_transactionr-Os��
�7�7�>�>�$�*�*�Z�0�1�1r!c�h�[U-n/n/nUSnU"U5n[X5nSSS5 UH+up�p�X�;dM
U(dMURXU45 M- URXc45 [Hup�URXX�-45 M UHup�URU5 M g!,(df   N�=f![aenUR[R:wa<[S5n	X�R
U5[R"U54-n	U"U	5 SnAGNSnAff=f![amnUR[R:waC[S5n	X�R
U5[R"U54-n	U"U	5 SnAGM
SnAGMSnAff=f)z�remove "undo" files used by the rollback logic

This is useful to prevent rollback running in situation were it does not
make sense. For example after a strip.
r%Nscould not read %s: %s
serror removing %s: %s
)�UNDO_BACKUP�read_backup_files�OSError�errno�ENOENTr
�joinr�forcebytestr�append�UNDO_FILES_MAY_NEED_CLEANUP�unlink)�report�vfsmap�undo_prefix�backup_listing�backup_entries�
undo_files�svfs�f�e�msg�location�backup_path�c�	undo_path�undovfs�undofiles                r�cleanup_undo_filesrITs��!�;�.�N��N��J��(��D��
�.�
!�Q�.�v�9�N�"�(6�#��[���+�+����v�/��=�>�(6����t�,�-�:������6�+�Y�-D�E�F� ;�'���	��N�N�8�$�(�"�
!�����7�7�e�l�l�"��.�/�C��I�I�n�-�z�/F�/F�q�/I�J�J�C��3�K���	�� �	��w�w�%�,�,�&��2�3�����X�.�
�0G�0G��0J�K�K���s���'��	�sM�C�B7�C�!D:�7
C�C�C�
D7�AD2�2D7�:
F1�AF,�,F1c�^^�/mUU4Sjn0n	UHNn
U
up�p�X;nURS5URS5:HnU(dM8U(dMAU
(dMJX�U'MP [5n[[U5R	55H�unnU	RU5nUb/Uup�p�SnU(aX�4U;nU"X,U
U5 UR
U5 U(dU(d�U=(a US4U;nU"USUS9nUR5U:a3[R"[S5UUUR54-5eURU5 UR5 M�URU5 M� UHzn
U
U;aMU
unnnnUU;aU(a
T"S	UU4-5 UUnU=(a UU4U;nU(aU(a
U"UUUU5 M]U=(d UnURU5 M| S
U-nUR!U5(aURU5 URU5 TH/unnUR!U5(dMURU5 M1 g![a T"[S5U-5 ef=f![a GMf=f![a GM5f=f![[R4a
 U(deGM_f=f![[R4a gf=f)zurollback a transaction :
- truncate files that have been appended to
- restore file backups
- delete temporary files
c�>�URU5nURU5n[R"XTUS9 TRX45 g![a1n[
R"U5nT	"[S5X4-5 eSnAff=f)N��
checkambigsfailed to recover %s (%s)
)r4r�copyfiler6r1rr5r
)
�vfsr@�brM�filepath�
backuppath�exc�e_msg�backupfilesr9s
        ��r�restore_one_backup�%_playback.<locals>.restore_one_backup�sx����8�8�A�;���X�X�a�[�
�	��M�M�*�:�F�����x�(���	��+�+�C�0�E��1�3�4��z�A�B���	�s�'A
�
B�,B�Br!NF�arLsBattempted to truncate %s to %d bytes, but it was already %d bytes
sfailed to truncate %s
s.couldn't handle %s: unknown cache location %s
r$)r4�set�sorted�dict�items�get�add�tellr�Abortr
�truncate�closer1r8�FileNotFoundErrorr*)�journalr9�openerr:�entries�
backupentriesr8�checkambigfilesrV�store_backup�entryrC�	file_pathrD�cacherO�is_store�	copy_doner@�o�	bck_entryrM�fp�lrPrE�targetrRrUs `                          @r�	_playbackrtys�����K�	��L���27�/��[�����8�8�C�=�F�K�K��$4�4���8�	�	�k�k�&+��#����I��t�G�}�*�*�,�-���1�!�$�$�Q�'�	�� �6?�3�H���J��'�2�o�E�
��v�+�z�J��M�M�)�$��F�(�H�a��X��-H�J�
��A�t�
�;���7�7�9�q�=��+�+��2���a�����+�	,������A�����
�
��
�
�a� �A.�H���I����
��1�a���F�?�q��E��A��N�O��Q�i��	�(�F�a��V��-F�J��Q�"�3��1�j�9���a��
��J�J�v�&��@#�W�,�J�
�}�}�Z� � ��
�
�j�!�
�M�M�'��
�!�F�C���z�z�!�}�}��
�
�1�
�"��_�
��q�3�4�q�8�9��
��%�
��
��$)���������%�	����	��
�U�[�[�!�
��
�sm�6A0I2�)J�2)J9�J9�)J'�<K#�K#�2 J�
J$�#J$�'
J6�1J9�5J6�6J9�9"K �K �#L�?Lc���\rSrSrS)SjrSrSr\S*Sj5r\	S+Sj5r
\	S+Sj5r\	S,S	j5rS
r
\	S-S.Sjj5rS
r\	S/S0Sjj5r\	S1S2Sjj5r\	S3Sj5rS\4Sjr\	S4Sj5r\	S5Sj5r\	S,Sj5r\	S6S7Sjj5rS+SjrS*SjrS8Sjr\	S*Sj5r\	S9Sj5r\	S8Sj5r\	S8Sj5r\	S:Sj5r \	S8Sj5r!\	S8Sj5r"\	S+S j5r#\	S+S!j5r$\	S;S"j5r%S#r&S$r'S%r(S&r)S'r*S(r+g)<r��Nc��SUlSUlXlX lUR	5nX#S'X0lX`l0Ul[5Ul	X@l
/UlXPl/Ul
U	cSn	X�l[5UlU
(aURR!U
5 U/Ul0Ul0UlUR)URS5Ul/Ul0UlSUR-UlUR)UR0S5UlUR2R5S[6-5 [5UlUb>UR;URUS	-5 UR;UR0US	-5 0Ul0UlS
Ul 0Ul!0Ul"UbX�RDS'0Ul#0Ul$g)a�Begin a new transaction

Begins a new transaction that allows rolling back writes in the event of
an exception.

* `after`: called after the transaction has been committed
* `createmode`: the mode of the journal file that will be created
* `releasefn`: called after releasing (with transaction and result)

`checkambigfiles` is a set of (path, vfs-location) tuples,
which determine whether file stat ambiguity should be avoided
for corresponded files.
r	r!Nc��g�Nr")�tr�successs  r�<lambda>�&transaction.__init__.<locals>.<lambda> s��Dr!sw+r$�w�%d
i�Fs
001-userhooks)%r�_usages�_report�_opener�copy�_vfsmap�_after�
_offsetmaprY�	_newfiles�_journal�_journal_files�	_undoname�_queue�
_releasefn�_checkambigfiles�update�_names�changes�hookargs�open�_file�_backupentries�
_backupmap�_backupjournal�_backupsfile�write�version�
_tmp_files�chmod�_filegenerators�_pendingcallback�_anypending�_finalizecallback�_validatecallback�_postclosecallback�_abortcallback)rr9rer:�journalname�undoname�after�
createmode�	validator�	releasefnrh�names            r�__init__�transaction.__init__�s���6����������������s�������������#�
� ���!�������0�I�#�� #������!�!�(�(��9��f��������
��[�[�����6��
�!������/�$�-�-�?���"�K�K��(;�(;�T�B���������'� 1�2��%����!��L�L����
�U�(:�;��L�L��,�,�j�5�.@�A� "��� "��� ���!#���"$���� �7@�"�"�#3�4�"$��� ��r!c��SRUR5nS[R"U5URUR
4-$)N�/z*<transaction name=%s, count=%d, usages=%d>)r4r�r�strfromlocalrr��rr�s  r�__repr__�transaction.__repr__UsB���y�y����%��;��!�!�$�'��K�K��L�L�?
�
�	
r!c�H�UR(aUR5 ggry)r��_abort�rs r�__del__�transaction.__del__]s���=�=��K�K�M�r!c��URSL$ry�r�r�s r�	finalized�transaction.finalizedas���%�%��-�-r!c�:�URR/5 g)z�delay registration of file entry

This is used by strip to delay vision of strip offset. The transaction
sees either none or all of the strip actions to be done.N)r�r6r�s r�
startgroup�transaction.startgroupes��	
�����2�r!c�p�URR5nUHup#URX#5 M g)z�apply delayed registration of file entry.

This is used by strip to delay vision of strip offset. The transaction
sees either none or all of the strip actions to be done.N)r��pop�	_addentry)r�qr@ros    r�endgroup�transaction.endgroupms,��
�K�K�O�O����D�A��N�N�1� �r!c��XR;d-XR;dXR;dXR;agUR(a URSRX45 gUR
X5 g)z5record the state of an append-only file before updateN���)r�r�r�r�r�r6r��r�file�offsets   rr^�transaction.addws]��
�N�N�"����&����&����&���;�;��K�K��O�"�"�D�>�2�����t�$r!c�R�XR;d-XR;dXR;dXR;agU(aX RU'OURR	U5 UR
R
SX4-5 UR
R5 g)z3add a append-only entry to memory and on-disk stateN�%s%d
)r�r�r�r�r^r�r��flushr�s   rr��transaction._addentry�sy��
�N�N�"����&����&����&���$*�O�O�D�!��N�N���t�$��
�
�����~�5�6��
�
���r!r!c��UR(aSn[R"U5eXR;dXR;agXR
;aU(dgU(a-XR
;aSnXSU4-n[R"U5eURUnURU5upxSURU4-n	URXy5n
URU5(avURU5nURU
5n[RRU5n
[R "X�R"SS9 [R$"X�US9 OSn
UR'X1U
S	45 g)
a�Adds a backup of the file to the transaction

Calling addbackup() creates a hardlink backup of the specified file
that is used to recover the file in the event of the transaction
aborting.

* `file`: the file path, relative to .hg/store
* `hardlink`: use a hardlink to quickly create the backup

If `for_offset` is set, we expect a offset for this file to have been previously recorded
s/cannot use transaction.addbackup inside "group"NzKcalling `addbackup` with `for_offmap=True`, but no offset recorded: [%r] %rs%s.backup.%s.bckT)�mode�
notindexed��hardlinkr!F)r�rrr�r�r�r��splitr��reljoinr*r4r(r)�dirnamer�makedirsr�rN�_addbackupentry)rr�r�rC�
for_offsetrBrOr��filename�backupfilename�
backupfilerQrR�final_dir_names              r�	addbackup�transaction.addbackup�s3��&�;�;�D�C��(�(��-�-��>�>�!�T�_�_�%<��
�_�_�
$�Z��
�D���7�2�
�
�d�#�#�C��(�(��-�-��l�l�8�$���I�I�d�O���,��
�
�x�/H�H���[�[��9�
��:�:�d����x�x��~�H����*�-�J� �W�W�_�_�Z�8�N��M�M�.�~�~�$�O��M�M�(��B��J����h�j�%�@�Ar!c��URRU5 [UR5S-
URUS'URRSU-5 URR
5 g)z0register a new backup entry and write it to diskr	�%s%s%s%d
N)r�r6�lenr�r�r�r�)rrjs  rr��transaction._addbackupentry�sd�����"�"�5�)�$'��(;�(;�$<�q�$@�����a��!������ 3�e� ;�<������!r!c�d�URRU5 URUSUS45 g)z|register a temporary transaction file

Such files will be deleted when the transaction exits (on both
failure and success).
r!FN)r�r^r�)r�tmpfilerCs   r�registertmp�transaction.registertmp�s-��	
�����G�$����h��W�e�<�=r!c�*�XBX5U4nXpRU'g)a�add a function to generates some files at transaction commit

The `genfunc` argument is a function capable of generating proper
content of each entry in the `filename` tuple.

At transaction close time, `genfunc` will be called with one file
object argument per entries in `filenames`.

The transaction itself is responsible for the backup, creation and
final write of such file.

The `genid` argument is used to ensure the same set of file is only
generated once. Call to `addfilegenerator` for a `genid` already
present will overwrite the old entry.

The `order` argument may be used to control the order in which multiple
generator will be executed.

The `location` arguments may be used to indicate the files are located
outside of the the standard directory for transaction. It should match
one of the key of the `transaction.vfsmap` dictionary.

The `post_finalize` argument can be set to `True` for file generation
that must be run after the transaction has been finalized.
N�r�)r�genid�	filenames�genfunc�orderrC�
post_finalizerjs        r�addfilegenerator�transaction.addfilegenerator�s��J�7�m�D��&+���U�#r!c�>�XR;aURU	gg)z=reverse of addfilegenerator, remove a file generator functionNr�)rr�s  r�removefilegenerator�transaction.removefilegenerators#���(�(�(��$�$�U�+�)r!c��SnU[:XaS=pEOU[:HnU[:Hn[URR55H�upgSnUup�p�nU(a	U(aMU(a	U(dM-URUn
/nU	HWnX�-
nU(aURX�S9 SnOURX�S9 X�4UR;nURU
"USSUS95 MY U
"U6 UHnUR5 M USS2	UHnUR5 M M� U$!UHnUR5 M f=f)NFT)rCr~)�
atomictemprM)
�
GEN_GROUP_ALL�GEN_GROUP_POST_FINALIZE�GEN_GROUP_PRE_FINALIZErZr�r\r�r�r�r�r6rb�discard)r�suffix�group�any�	skip_post�skip_pre�idrjr�r�r�rCr�rO�filesr�rMr@s                  r�_generatefiles�transaction._generatefilessF�����M�!�#(�(�I��� 7�7�H��!7�7�I��� 4� 4� :� :� <�=�I�B��C�AF�>�E�g���]���-���,�,�x�(�C��E�
 �%�D��N�D���(�(��(�A�%*�
����t��?�&*�%5��9N�9N�%N�
��L�L��D�$�4�J�O��&�����A��G�G�I���!�H��A��I�I�K��=>�@�
���A��I�I�K��s
�BD$�$D?c�X�XR;agURRU5$�Nr)r�r�r])rr�s  r�
findoffset�transaction.findoffset8s$���>�>�!�����"�"�4�(�(r!c���URRS5 /nURR5H2nURS5up4UR	U[U545 M4 U$)Nr�)r��seek�	readlinesr�r6�int)rrfrrr��troffsets     r�readjournal�transaction.readjournal>sY���
�
����������%�%�'�A��W�W�U�^�N�D��N�N�D�#�h�-�0�1�(��r!c��XR;a2U(dgURRU5 X RU'OYXR;a?U(d)URU	URRU5 OX RU'O[	U5eUR
R
SX4-5 UR
R5 g)zV
replace can only replace already committed entries
that are not pending in the queue
Nr�)r��remover�r^�KeyErrorr�r�r�r�s   r�replace�transaction.replaceGs����>�>�!����N�N�!�!�$�'�$*�O�O�D�!�
�_�_�
$���O�O�D�)����"�"�4�(�(.����%��4�.� ��
�
�����~�5�6��
�
���r!c��U=RS-
slU=RS-
slURRU5 U$�Nr	)rr�r�r6r�s  r�nest�transaction.nest]s5�����q��������������4� ��r!c��URS:�aU=RS-slUR(aURR5 URS:�a"URS:XaUR	5 ggg)Nrr	)rr�r�r�r�r�s r�release�transaction.releasedsV���;�;��?��L�L�A��L��;�;��K�K�O�O���;�;��?�t�|�|�q�0��K�K�M� 1�?r!c� �URS:�$r)rr�s r�running�transaction.runningms���{�{�Q��r!c� �X RU'g)z�add a callback to be called when the transaction is pending

The transaction will be given as callback's first argument.

Category is a unique identifier to allow overwriting an old callback
with a newer callback.
N)r��r�category�callbacks   r�
addpending�transaction.addpendingps��+3���h�'r!c��[UR5nUH>nURRU5"U5nUR=(d UUlM@ U=RUR	SS9-slUR$)zhwrite pending file to temporary version

This is used to allow hooks to view a transaction before commits.pending)r�)rZr�r�r�r)r�
categories�catr�s    r�writepending�transaction.writepending~sy��
�D�1�1�2�
��C��'�'�+�+�C�0��6�C�#�/�/�6�3�D���	
���D�/�/�{�/�C�C�����r!c��XR;$)z0check is a callback already exist for a categoryr��rrs  r�hasfinalize�transaction.hasfinalize�s���1�1�1�1r!c� �X RU'g)z�add a callback to be called when the transaction is closed

The transaction will be given as callback's first argument.

Category is a unique identifier to allow overwriting old callbacks with
newer callbacks.
Nr�rs   r�addfinalize�transaction.addfinalize�s��,4���x�(r!c� �X RU'g)z�add or replace a callback to be called after the transaction closed

The transaction will be given as callback's first argument.

Category is a unique identifier to allow overwriting an old callback
with a newer callback.
N)r�rs   r�addpostclose�transaction.addpostclose�s��-5����)r!c�:�URRUS5$)z1return a postclose callback added before, or NoneN)r�r]r)s  r�getpostclose�transaction.getpostclose�s���&�&�*�*�8�T�:�:r!c� �X RU'g)z�add a callback to be called when the transaction is aborted.

The transaction will be given as the first argument to the callback.

Category is a unique identifier to allow overwriting an old callback
with a newer callback.
N)r�rs   r�addabort�transaction.addabort�s��)1���H�%r!c� �X RU'g)z�adds a callback to be called when validating the transaction.

The transaction will be given as the first argument to the callback.

callback should raise exception if to abort transactionN)r�rs   r�addvalidator�transaction.addvalidator�s��,4���x�(r!c�d�URS:Xa�[UR5HnURU"U5 M SUlUR[S9 UR
(aDUR
n0Ul[U5nUH
nX$"U5 M UR
(aMDSUlUR[S9 U=RS-slURS:wagURR5 URR5 URH~upVpxXPR;aU(aURSXu4-5 M3URUn	U(aMKU(dMTU	RU5(dMlU	RU5 M� 0Ul[)5UlUR-5 UR.(aUR/5 SUlUR0R3UR45(a%UR0RUR45 UR0R3UR65(a%UR0RUR65 URHuup[pxXPR;aU(aURSXu4-5 M3URUn	U(dMKU	RU5(dMcU	RU5 Mw /Ul
SUlUR9US5 SUl[UR:5nUHnUR:U"U5 M SUlg![[ R"4a9n
U(deURSU	R%U5U
4-5 Sn
A
GM�Sn
A
ff=f![[ R"4a9n
U(deURSU	R%U5U
4-5 Sn
A
GMSn
A
ff=f)	zcommit the transactionr	N)r�rs.couldn't remove %s: unknown cache location %s
scouldn't remove %s: %s
�-couldn't remove %s: unknown cache location%s
T)rrZr�rr�r�r�r�rbr�r�r�r�r*r8r1rr`r4r�rYr��
_writeundor�r��isfiler�r�r�r�)rr�	callbacksr$r%rrr@rPrErO�inst�_fs            rrb�transaction.close�sR���;�;�!��"�4�#9�#9�:���&�&�x�0��6�;�%)�D�"����&<��=��(�(� �2�2�	�)+��&�#�I�.�
�%�C��N�4�(�&�	�(�(�(�&*�D�"����&=��>����q����;�;�!����
�
���������!��-�-�J�A�!����$�����F�!��O����,�,�q�/�C��1���s�z�z�!�}�}���J�J�q�M�.�"������������;�;��K�K�M��D�K��<�<���t�2�2�3�3��L�L���� 3� 3�4��<�<���t�}�}�-�-��L�L����
�
�.��.�.�K�A�1����$������ �f�%����,�,�q�/�C��q�S�Z�Z��]�]���J�J�q�M�/�$!�����
�����d�#�����D�3�3�4�
��C��#�#�C�(��.��#'����] ����-�����L�L�3�s�x�x��{�D�6I�I����	��8 ����-�����L�L�3�s�x�x��{�D�6I�I����	�s0�N�O�O� -O�O�P/�6-P*�*P/c�$�UR5 g)z�abort the transaction (generally called on error, or when the
transaction is not explicitly committed before going out of
scope)N)r�r�s r�abort�transaction.abort$s
��
	
���
r!c�<�URRX45 gry)r�r6)r�vfs_idr)s   r�add_journal�transaction.add_journal+s�����"�"�F�>�2r!c�<^�TRcg[TRTRTRS9 SU4SjjnSTR-nTRRUS5nUR
S[-5 TRH�upEpgU(dMU(dSnOyUTR;aU(aTRSXd4-5 MGTRUn	U"U5n[R"U	RU5U	RU5S	S
9 UR
SXEX�4-5 M� UR5 TRH0up�U"U
5nU	RU5 U	RX�5 M2 g![ a MBf=f)
z4write transaction data for possible future undo callN)r;c�>�[RRU5upURTR5(deURTRTRS5n[RRX5$r)r(r)r��
startswithr�rr�r4)�fn�baser��new_namers    �rr��(transaction._writeundo.<locals>.undoname9s]��������r�*�J�D��?�?�4�=�=�1�1�1�1��|�|�D�M�M�4�>�>�1�E�H��7�7�<�<��/�/r!r$r~rr!r<Tr�r�)rM�bytes�returnrQ)r�rIr�r�r�r�r�r�r�rrNr4rbr��	tryunlink�renamerc)rr��undo_backup_path�undobackupfilerrr@rPrE�urO�src�dests`           rr=�transaction._writeundo/sg����>�>�!����L�L��L�L����	
�	0�-�t�~�~�=�����*�*�+;�T�B�����W�w�.�/��-�-�J�A�!�������D�L�L�(�Q��L�L� �#$�&�)����l�l�1�o���Q�K���
�
�c�h�h�q�k�3�8�8�A�;��F�� � �!4��a�|�!C�D�.� 	�����+�+�H�C��C�=�D�
�M�M�$��
��
�
�3�%�,��%�
��
�s�7F
�
F�Fc�\�UR5nSUlSUlURR	5 UR
R	5 UR
U5nU(dUR[S55 [UR5HnURU"U5 M SUl
U(aURU5 OURU5 SUl
URUS5 SUlg!SUl
URUS5 SUlf=f)Nrstransaction abort!
F)rrr�r�rbr��_can_quick_abortr�r
rZr��_do_quick_abort�_do_full_abortr�r�)rrf�quickr%s    rr��transaction._abort^s����"�"�$���������
�
���������!��%�%�g�.��	#�����Q�6�7�8��d�1�1�2���#�#�C�(��.�3�#'�D����$�$�W�-��#�#�G�,� �D�M��O�O�D�%�(�"�D�O��!�D�M��O�O�D�%�(�"�D�O�s
�%BD	�	"D+c�R�U(agURHnUS(dM g g)zyFalse if any semantic content have been written on disk

True if nothing, except temporary files has been writen on disk.Fr	T)r�)rrfrAs   rr\�transaction._can_quick_abortvs+�����$�$�A���t�t��%�r!c���URU5(deURVs/sHo"S(aMUPM nnUH'upEpgURUnURU5 M) UR
(a%URRUR
5 UR(a&URRUR5 ggs snf![a M�f=f)z4(Silently) do a quick cleanup (see _can_quick_abort)r	N)r\r�r�r8rcr�r�r�)	rrfrA�	tmp_filesrG�old_path�tmp_path�xxxrOs	         rr]�transaction._do_quick_abort�s����$�$�W�-�-�-�-� $� 3� 3�@� 3�1�Q�4�Q� 3�	�@�/8�+�F�h��,�,�v�&�C�
��
�
�8�$�09�����L�L���� 3� 3�4��=�=��L�L����
�
�.���A��
%�
��
�s�
C�C�C � 
C.�-C.c��[URURURURUUR
SURS9 UR[S55 g![aUnUR[S55 UR[S5[R"U5-5 SnAgSnAff=f)z?(Noisily) rollback all the change introduced by the transactionT)r8rhsrollback completed
s(rollback failed - please run hg recover
s(failure reason: %s)
N)rtr�r�r�r�r�r�r
�
BaseExceptionrr5)rrfrSs   rr^�transaction._do_full_abort�s���	���
�
������������#�#�� $� 5� 5�	
�
�L�L��2�3�4���	��L�L��G�H�I��L�L��+�,�z�/F�/F�s�/K�K�
�
��	�s�A&A)�)
C�3AC�C)r�r�r�r�r�r�r�r�rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)NNNNNN�	<unnamed>)rR�bool)rR�None)r�rr�r
rRrn)Tr!F)
r�rr�rmrCrr�zUnion[bool, int]rRrn)r!)r�rrCrrRrn)rr!F)r�rQr�zCollection[HgPathT]r�rr�r
rCrr�rmrRrn)r�rQrRrn)r�rrRz
Optional[int])rRzList[itxn.JournalEntryT])rl)r�rQrRr
)rrr zCallable[[TransactionT], None]rRrn)rrrRrm)rrrRz(Optional[Callable[[TransactionT], None]])rGrr)rrRrn),�__name__�
__module__�__qualname__�__firstlineno__r�r�r��propertyr�r#r�r�r^r�r�r�r�r�r�r�rrrrrrrr!r&r*r-r0r3r6r9rbrDrHr=r�r\r]r^�__static_attributes__r"r!rrr�sV��������
�`!�D
���.��.������!��!��
%��
%��"���',�2B��2B��2B��	2B�
%�2B�
�
2B��2B�h"��>��>����#�%,��%,�'�%,��	%,�
�%,��
%,��%,�
�%,��%,�N�,��,�
%(�}�*�X�)��)�
��������*������3�#�3�1�3�
�	3��
 ��
 ��2��2��4�#�4�1�4�
�	4��4��5�#�5�1�5�
�	5��5��;�#�;�
2�;��;��1�#�1�1�1�
�	1��1��
4�#�
4�1�
4�
�	
4��
4��O'��O'�b�����3��3�-�^#�0	�
/�r!rs8journal was created by a different version of Mercurial
c	��UR5n/nU(anUSSSnUS[-:waU"[5 U$USSHBnU(dMUSSnURS5upgp�UR	XgU[U	545 MD U$)aBparse an (already open) backup file an return contained backup entries

entries are in the form: (location, file, backupfile, xxx)

:location:   the vfs identifier (vfsmap's key)
:file:       original file path (in the vfs)
:backupfile: path of the backup (in the vfs)
:cache:      a boolean currently always set to False
rNr�s%dr	r)r	r��BAD_VERSION_MSGr�r6rm)
r9rq�linesrg�ver�linerrr@rPrEs
          rr0r0�s���
�L�L�N�E��M���A�h�s��m���5�7�?�#��?�#���
�a�b�	���4����9�D�!%���E�!2�J�A�!�!�(�(�!��4��7�);�<�"��r!c
�^�/n/nURU5nUR5n	SSS5 W	H3n
U
RS5up�URU[	U545 M5 SU-n
URU
5(a%URU
5n[X85nSSS5 Tb&U4SjnUVs/sHo�"U5(dMUPM nn[UUUUUUUS9 g!,(df   N�=f![
a, U"[
S5[R"U
5-5 M�f=f!,(df   N�=fs snf)a_Rolls back the transaction contained in the given file

Reads the entries in the specified file, and the corresponding
'*.backupfiles' file, to recover from an incomplete transaction.

* `file`: a file containing a list of entries, specifying where
to truncate each file.  The file should contain a list of
fileoffset pairs, delimited by newlines. The corresponding
'*.backupfiles' file should contain a list of filebackupfile
pairs, delimited by .

`checkambigfiles` is a set of (path, vfs-location) tuples,
which determine whether file stat ambiguity should be avoided at
restoring corresponded files.
Nrs couldn't read journal entry %r!
r$c�6>�TRUS5(+$r)�match)�x�skip_journal_patterns �rr|�rollback.<locals>.<lambda>�s���1�7�7��!��=�=r!)rh)r�r	r�r6r
�
ValueErrorr
r�bytestrr*r0rt)rer:r�r9rhr~rfrgrqrwrrr@ro�
backupjournal�keepr}s     `          r�rollbackr��s ���.�G��M�	���T�	�b������
�
��	��7�7�5�>�D�A��N�N�A�s�1�v�;�'��&��,�M�
�}�}�]�#�#�
�[�[��
'�2�-�f�9�M�(��'�=��$1�=�M�q�T�!�W��M�
�=�
�������'��'
�	���	���6�7�(�:J�:J�1�:M�M�
�	��(�
'��>s4�C"�/C3�D,�6D=�
D=�"
C0�32D)�(D)�,
D:)sundo)TN)NN)*�
__future__rr2r(�typingrrrrr�i18nr
�interfaces.typesrrr
r�rrrr�utilsr�
interfacesr�itxnr�r�r�r�r#r/r7r-rIrt�
transactional�ITransactionrvr0r�r"r!r�<module>r�s���#��	���������+�
���
�'��)��� ��
�� 2�
"�X��v
�rp
�$�$�$�d�&7�&7�p
�f�@���
�>��
5r!

Youez - 2016 - github.com/yon3zu
LinuXploit