403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.58
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/hgext/largefiles/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/hgext/largefiles/__pycache__/lfutil.cpython-313.pyc
�

6�h�f��8�SrSSKJr SSKrSSKrSSKrSSKrSSKJr SSK	J
r
 SSKJrJ
r
JrJrJrJrJrJrJrJrJr SSKJr SSKJr S	r\S
-rSr\R@S;Sj5r!S<S
jr"Sr#Sr$\4Sjr%Sr&Sr'"SS\R5r(S;Sjr)Sr*S=Sjr+S>Sjr,S>Sjr-Sr.Sr/Sr0Sr1Sr2Sr3S?S jr4S!r5S"r6S#r7S$r8S%r9S&r:S'r;S(r<S)r=S*r>S+r?S,r@S-rAS.rBS/rC"S0S1\D5rES2rFS3rGS4rHS5rIS6rJS7rK"S8S95rLS?S:jrMg)@zGlargefiles utility code: must not import other modules in this package.�)�annotationsN)�_)�hex)�dirstate�encoding�error�httpconnection�match�pycompat�requirements�scmutil�sparse�util�vfs)�hashutil)�	timestamps.hglf�/�
largefilesc#�^# �[USS5nXlSv� X lg!X lf=f7f)N�lfstatusF)�getattrr)�repo�value�oldvalues   �9/usr/lib/python3/dist-packages/hgext/largefiles/lfutil.pyrr,s*����t�Z��/�H��M�!�
� �
���
�s�-�"�-�*�-c��UnU(dU(aUR[SUS9nU(a[U5nUc[R
"[
S55eU$![a# [R
"[
S5U-5ef=f)Nsminsize)�defaults)largefiles: size must be number (not %s)
s-minimum size for largefiles must be specified)�config�longname�float�
ValueErrorr�Abortr)�ui�assumelfiles�optr�lfsizes     r�
getminsizer'6s���
�F��l����8�Z���A��
�	��6�]�F�
�~��k�k�!�L�M�N�N��M��
�	��+�+��?�@�6�I��
�	�s�A�-B
c�.�[R"[RR	U55 [R
"X5 g![a� [US5n[R"U5n[R"U5HnURU5 M SSS5 O!,(df   O=fSSS5 O!,(df   O=f[R"U[R"U5R5 gf=f)z@Try to create hardlink - if that fails, efficiently make a copy.�rbN)r�makedirs�os�path�dirname�oslink�OSError�open�atomictempfile�
filechunkiter�write�chmod�stat�st_mode)�src�dest�srcf�dstf�chunks     r�linkr<Fs����M�M�"�'�'�/�/�$�'�(�-����C����-�
�#�t�_��d�&9�&9�$�&?�4��+�+�D�1���
�
�5�!�2�'@�&?�&?��_�_�_��	����r�w�w�s�|�+�+�,�-�sA�A�D�"C�9/B1�(	C�1
B?�;C�	D�
C	�<D�Dc�T�[RR[U5U5$)z�Return the correct location in the "global" largefiles cache for a file
with the given hash.
This cache is used for sharing of largefiles across repositories - both
to preserve download bandwidth and storage space.)r+r,�join�
_usercachedir)r#�hashs  r�
usercachepathrASs��
�7�7�<�<�
�b�)�4�0�0�c�6�URUS5nU(aU$Sn[R(av[RRS[RRS55nU(a[RRXA5$[S5SSU4-nGOQ[R(aY[RRS5nU(a"[RRUSSU5$[S	5SU4-nO�[R(a�[RRS
5nU(a[RRX!5$[RRS5nU(a![RRUSU5$[S5S
SU4-nO0[R"[S5[R-5e[R"[S
5U-US9e)z5Return the location of the "global" largefiles cache.s	usercacheNsLOCALAPPDATAsAPPDATAs7define %s or %s in the environment, or set %s.usercachesHOMEsLibrarysCachess1define %s in the environment, or set %s.usercachesXDG_CACHE_HOMEs.cachesunknown operating system: %s
sunknown %s usercache location)�hint)�
configpathr�	iswindowsr�environ�getr+r,r>r�isdarwin�isposixrr"�osname)r#�namer,rD�appdata�homes      rr?r?[s���
�=�=��|�,�D�����D�����"�"�&�&��X�-�-�1�1�*�=�
����7�7�<�<��.�.��K�L����P
�
��

�	�	����#�#�G�,����7�7�<�<��j�)�T�B�B��E�F���J
�
��
�	�	����#�#�$5�6����7�7�<�<��+�+����#�#�G�,����7�7�<�<��i��6�6��K�L����P
�
���k�k�
�/�0�8�?�?�B�
�	
��+�+�a�8�9�D�@�t�
L�LrBc�V�[X5n[RRU5$�N)rAr+r,�exists)r#r@r,s   r�inusercacherR�s����"�D�
�7�7�>�>�$��rBc�\�[X5up#U(a)URR[S5U-5 U$[	URU5(aTURR[S5U-5 [X5n[
[URU5U5 U$g)z�Return store path of the largefile with the specified hash.
As a side effect, the file might be linked from user cache.
Return None if the file can't be found locally.sfound %s in store
sfound %s in system cache
N)�
findstorepathr#�noterrR�	storepathr<rA)rr@r,rQs    r�findfilerW�s���!��,�L�D�
������Q�-�.��5�6���	�T�W�W�d�	#�	#������Q�4�5��<�=���$���]�4�7�7�D�
)�4�0���rBc�R^�\rSrSrSrSrS	U4SjjrU4SjrSrU4Sjr	Sr
U=r$)
�largefilesdirstate�Ts-large-filesc�2>�[TU][U5US9$)N)�
reset_copy)�super�set_tracked�unixpath)�self�fr\�	__class__s   �rr^�largefilesdirstate.set_tracked�s����w�"�8�A�;�:�"�F�FrBc�4>�[TU][U55$rP)r]�
set_untrackedr_)r`rarbs  �rre� largefilesdirstate.set_untracked�s����w�$�X�a�[�1�1rBc��g�NF�)r`ras  r�
_dirignore�largefilesdirstate._dirignore�s��rBc�R>�U(aURSSS9 [TU]	S5 g)Nslargefiles/dirstatesplain)�location)�	addbackupr]r3)r`�trrbs  �rr3�largefilesdirstate.write�s%�����L�L�/�(�L�C�
��
�d�rBri�F)�__name__�
__module__�__qualname__�__firstlineno__�_large_file_dirstate�_tr_key_suffixr^rerjr3�__static_attributes__�
__classcell__)rbs@rrYrY�s(�����$�N�
G�2���rBrYc
�|^�[TRSS5nUbU$TRn[n[R"URU55n[RTR;n[UUTRTRRU4SjTRU5nU(a�URURUS55(d�TRSS9 URT5 [T5n	TRR!U	/SSS9n
[#U
5S:�aUR%U5 U
H n['U5nUR)US	S	S	S
9 M" SSS5 SSS5 U$U$!,(df   N=f!,(df   U$=f![*R,a U$f=f)z�
Return a dirstate object that tracks largefiles: i.e. its root is
the repo root, but it is saved in .hg/largefiles/dirstate.

If a dirstate object already exists and is being used for a 'changing_*'
context, it will be returned.
�
_sub_dirstateNc�0>�[R"T5$rP)r�matcher)rs�r�<lambda>� openlfdirstate.<locals>.<lambda>�s������t�$rBsdirstateF)�wait��subrepos�unknown�ignoredrT)�
p1_tracked�
wc_tracked�possibly_dirty)rrrr�vfsmodr>r�DIRSTATE_V2_REQUIREMENTrY�root�	_validate�
nodeconstantsrQ�wlock�changing_files�getstandinmatcher�walk�lenr*�splitstandin�hacky_extension_update_filer�	LockError)
r#r�create�sub_dirstater�
lfstoredir�opener�use_dirstate_v2�
lfdirstater}�standins�standin�lfiles
 `           r�openlfdirstater��s�����4�=�=�/�4�@�L�����
�(�(�C��J�
�Z�Z�����,�
-�F�"�:�:�d�>O�>O�O�O�#��
��	�	��
�
���$������J��c�j�j����*�k�!B�C�C�	������'��)B�)B�4�)H�+�D�1���=�=�-�-��b�%��.����x�=�1�$��L�L��,�'�G�(��1�E��:�:��#'�#'�'+�	;�� (�*I�'�,��:��-*I�)H��'�'�,������	�
���	�sI�F#�,F�>A.F�,F�4F#�
F	�
F�
F �F#� F#�#F;�:F;c�L�USn[R"5nURU/SSSS9upEnURURp�USn	UH�n
U[U
5nU(a'[U5[URU
55:waURU
5 MSURU
5 X�R5nURn
URn[R"X�5nUcM�X�U4nUR!U
U5 M� U$![a SnN�f=f)N�.F�r�r��cleanr�)�matchmod�always�status�modifiedr�r��LookupError�
readasstandin�hashfile�wjoin�append�lstatr6�st_sizer�reliable_mtime_of�	set_clean)r�r�pctxr
�unsure�s�mtime_boundaryr�r��wctxr��fctx�st�mode�size�mtime�
cache_datas                 r�lfdirstatestatusr��s����:�D��O�O��E� *� 1� 1�
��E���!2�!��F�~��j�j�!�'�'�e���:�D���	�����'�D��}�T�*�h�t�z�z�%�7H�.I�I��O�O�E�"��L�L�����"�"�$�B��:�:�D��:�:�D��/�/��C�E�� �"�%�0�
��$�$�U�J�7�� 
�H���	��D�	�s�D�D#�"D#c���Uc[U5nXRU5Vs/sH=nUc,URRU5R(dM2[U5PM? sn$s snf)zJreturn a list of largefiles in the working copy or the
specified changeset)r�r�r�	get_entry�any_trackedr�)r�revr}ras    r�
listlfilesr�
sg����#�D�)��
�����(��(�A��?�d�m�m�5�5�a�8�D�D�	��Q��(����s�1A+�A+c�T�[RR[XU55$)zBReturn true if a largefile with the given hash exists in the store)r+r,rQrV�rr@�
forcelocals   r�instorer�s��
�7�7�>�>�)�D�
�;�<�<rBc���U(d@UR5(a+URRUR[U5$URR[U5$)z^Return the correct location in the repository largefiles store for a
file with the given hash.)�sharedr�reljoin�
sharedpathrr>r�s   rrVrV!sC���$�+�+�-�-��x�x�������4�@�@��8�8�=�=��4�(�(rBc��[XS5n[X5(aUS4$UR5(a[XS5(a[XS5S4$US4$)z�Search through the local store path(s) to find the file for the given
hash.  If the file is not found, its path in the primary store is returned.
The return value is a tuple of (path, exists(path)).
FT)rVr�r��rr@r,s   rrTrT)sX���T��'�D��t����d�|��	
�����7�4�t�4�4���T�*�D�0�0��%�=�rBc���URn[X5nUcgURURUR	U555 [US5oS"US5n[
[R"U5U5nSSS5 SSS5 WU:wa;URR[S5X$U4-5 URU5 gg!,(df   NX=f!,(df   Na=f)aCopy the specified largefile from the repo or system cache to
filename in the repository. Return true on success or false if the
file was not found in either cache (which should not happened:
this is meant to be called only after ensuring that the needed
largefile exists in the cache).NFr)swbs'%s: data corruption in %s with hash %s
T)
�wvfsrWr*r-r>r0�copyandhashrr2r#�warnr�unlink)rr@�filenamer�r,�srcfd�destfd�gothashs        r�
copyfromcacher�;s����9�9�D��D��D��|���M�M�$�,�,�t�y�y��2�3�4�
�d�D�	�U�D��5�$9�V��d�0�0��7��@��%:�	��$�������
�9�:��w�'�
(�	
�	
���H����%:�$9��	�	�s$�	C$� !C�C$�
C!	�C$�$
C2c��URn[X5n[X5(agURU5(a[	XRU5U5 gURR[S5X%4-5 g)Ns0%s: largefile %s not available from local store
)	r�r�r�rQ�copytostoreabsoluter>r#r�r)r�ctx�file�fstandinr�r@s      r�copytostorer�Tsi���9�9�D����'�D��t�����{�{�4����D�)�)�D�/�4�8������
�B�C��l�
�	
rBc��XnUR5H4n[U5nUcMX2R5;dM([XXC5 M6 g)z4Copy all largefiles in a given revision to the storeN)�filesr��manifestr�)r�noder�r��realfiles     r�copyalltostorer�bs@���*�C��I�I�K����)����H����$>���8�6� rBc�\�[URU5(a*[[URU5[	X55 g[
R"[RR[	X555 [US5n[
R"[	X5URRS9n[
R"U5HnURU5 M SSS5 SSS5 [!X5 g!,(df   N"=f!,(df   N+=f)Nr))�
createmode)rRr#r<rArVrr*r+r,r-r0r1�storer�r2r3�linktousercache)rr�r@r9r:r;s      rr�r�ls����4�7�7�D�!�!��]�4�7�7�D�
)�9�T�+@�A��
�
�b�g�g�o�o�i��&;�<�=�
�$��
���$�$��$�%�$�*�*�2G�2G���!�/�/��5�E��J�J�u�%�6���	��#�����
�s$�3D�/D�0D�
D	�D�
D+c�Z�[URU5n[[X5U5 g)zNLink / copy the largefile with the specified hash from the store
to the cache.N)rAr#r<rVr�s   rr�r�zs#������$�'�D���4�	��%rBc��URn[nSnU(avUR5(daUR5Vs/sHoRR	X55PM nnU(dUR	U5/n[
R"USXdS9nU$[
R"USUR	U5/US9nU$s snf)zDReturn a match object that applies rmatcher to the standin directoryc��grPri)ra�msgs  rr~�#getstandinmatcher.<locals>.<lambda>�s��4rBN)�badfn)r��	shortnamer�r�r>r
r
)r�rmatcherr��
standindirr��pat�patsr
s        rr�r��s����9�9�D��J�
 �E�����)�)�6>�n�n�6F�G�6F�s�	�	�*�*�6F��G���I�I�j�)�*�D��
�
�d�4�j�$�<���L��
�
�d�4�j�4�9�9�Z�+@�*A��O���L��Hs�B>c�b^^�[UT5nURmUU4SjnSUlX2lU$)z�Return a matcher that accepts standins corresponding to the
files accepted by rmatcher. Pass the list of files in the matcher
as the paths specified by the user.c�V>�T"U5=(a TR[U55$rP)�matchfnr�)ra�	isstandinr�s ��r�composedmatchfn�.composestandinmatcher.<locals>.composedmatchfn�s!�����|�A�� 0� 0��a�� A�ArBT)r�r��_was_tampered_with)rr��smatcherr�r�s `  @r�composestandinmatcherr��s7���!��x�0�H�� � �I�B�#'�H��&���OrBc�<�[[R"U5-$)zHReturn the repo-relative path to the standin for the specified big
file.)�shortnameslashr�pconvert�r�s rr�r��s���D�M�M�(�3�3�3rBc�,�UR[5$)zoReturn true if filename is a big file standin. filename must be
in Mercurial's internal form (slash-separated).)�
startswithr�r�s rr�r��s�����~�.�.rBc��[R"U5RSS5n[U5S:XaUS[:XaUS$g)Nr��r)rr��splitr�r�)r��bitss  rr�r��sA���=�=��"�(�(��q�1�D�
�4�y�A�~�$�q�'�Y�.��A�w��rBc���URU5nURRU5(a#[U5n[	U5n[XXE5 g[R"[S5U-5e)z�Re-calculate hash value of lfile and write it into standin

This assumes that "lfutil.standin(lfile) == standin", for efficiency.
s%s: file not found!N)	r�r�rQr��
getexecutable�writestandinrr"r)rr�r�r�r@�
executables      r�
updatestandinr�s^��
�:�:�e��D��y�y��������~��"�4�(�
��T�D�5��k�k�!�2�3�e�;�<�<rBc�>�UR5R5$)ztread hex hash from given filectx of standin file

This encapsulates how "standin" data is stored into storage layer.)�data�strip)r�s rr�r��s���9�9�;����rBc�R�URXS-U=(a S=(d S5 g)z#write hash to <repo.root>/<standin>�
�xrBN)�wwrite)rr�r@rs    rrr�s���K�K����z�':�d�'A�c�BrBc��[R"S5nUH%nURU5 URU5 M' [	UR55$)z�Read bytes from instream (iterable) and write them to outfile,
computing the SHA-1 hash of the data along the way. Return the hash.rB)r�sha1�updater3r�digest)�instream�outfile�hasherr
s    rr�r��sG���]�]�3�
�F����
�
�d���
�
�d����v�}�}���rBc��[RRU5(dg[US5n[	U5sSSS5 $!,(df   g=f)NrBr))r+r,rQr0�hexsha1)r��fds  rr�r��s7��
�7�7�>�>�$����	
�d�D�	�R��r�{�
�	�	�s�A�
Ac���[R"U5RnU[R-=(a- U[R-=(a U[R
-$rP)r+r5r6�S_IXUSR�S_IXGRP�S_IXOTH)r�r�s  rrr�sI��
�7�7�8��$�$�D�	
����	�	"�
�D�L�L�
 �	"�
�D�L�L�
 �rBc�>�SnU"X5nUHnU"XE5nM
 U$)Nc�v�URS5(dUS-
nURS5(aUSSnX-$)Nrr)�endswithr�)�left�rights  rr>�urljoin.<locals>.join�s>���}�}�T�"�"��D�L�D����D�!�!��!�"�I�E��|�rBri)�first�second�argr>�url�as      r�urljoinr)�s+����u�
�C�
���3�l����JrBc��[R"5n[R"U5HnUR	U5 M [UR
55$)zQhexsha1 returns the hex-encoded sha1 sum of the data in the file-like
object data)rrrr2rrr)�fileobj�hr;s   rrrs?��	�
�
��A��#�#�G�,��	�����-��q�x�x�z�?�rBc�0�[R"XS5$)Nsrb)r	�httpsendfile)r#r�s  rr.r.
s���&�&�r�U�;�;rBc�h�[R"[RR	U55$)z@Return a version of path normalized for use with the lfdirstate.)rr�r+r,�normpath)r,s rr_r_s ���=�=����)�)�$�/�0�0rBc��SUR;aJURR5H,nUR(dM[UR
;dM, g [
[URUS55$)z,Return true if the repo is a largefile repo.rTF)	rr��data_entries�	is_revlogr��	target_id�anyr�r#)r�entrys  r�islfilesrepor7sX����)�)�)��Z�Z�,�,�.�E�����>�U�_�_�#D��/��~�d�g�g�t�U�3�4�4rBc��\rSrSrSrSrg)�storeprotonotcapablei c��XlgrP��
storetypes)r`r<s  r�__init__�storeprotonotcapable.__init__!s��$�rBr;N)rrrsrtrur=rxrirBrr9r9 s��%rBr9c���/n[U5nUSnURRU/SSS9H.n[U5n[	X45nUR
XV45 M0 U$![
a SnN&f=f)NFr�)r�rr�r�r�r/r�)rr�r}r�r�r�r@s       r�getstandinsstater@%s����H���%�G���:�D��=�=�%�%��"�e�U�&����W�%��	� ���/�D�	����
�&���O���	��D�	�s�
A#�#A2�1A2c���[U5nX@R;aURUSSS9 gURRU5nURUURUR
URSS9 g)NF)r�r�T)r�r��p2_infor�)r�rr�r��trackedr�rB)rr�r��normallookup�	lfstandinr6s      r�synclfdirstaterF5sw�����I��
�
�%��.�.����	/�	
��
�
�'�'�	�2���.�.���}�}��'�'��M�M��	/�	
rBc�H�UR5nURRU5 U"U5 [URU5nUR5H n[
U5nUcM[X4US5 M" SSS5 [X25 g!,(df   N=frh)	rr�changing_parentsr�r#r�r�rFr�)�origr�r�rr�rar�s       r�
markcommittedrJHs{���8�8�:�D�	
���	'�	'��	-��T�
�$�D�G�G�T�2�
�����A� ��O�E�� ��t���>��
.�0�4��1
.�	-�s�>B�.B�
B!c��[U5R[U55n/nUH"nUSU;dMURUS5 M$ U$)Nr)�set�symmetric_differencer�)�oldstandins�newstandins�changedstandins�filelistras     r�getlfilestoupdaterRfsN���+�&�;�;�C��<L�M�O��H�
���Q�4�x���O�O�A�a�D�!���OrBc
�*�URRnU"[S5[S5[U5S9n[	U5GH�upVURU5 XR
5Vs/sHowUR:wdMUPM nn[USS9 Xn	SSS5 [W	R55n
[U5S:Xa�U	R5nU	R5R5nU	R5R5n
UHnX�;dM
U
RU5 M U
HnX�;dM
U
RU5 M UHFnX�URUS5:wdX�U
RUS5:wdM5U
RU5 MH U
H0n[!U5(dMX�;dMU"U[#X�55 M2 GM� SSS5 gs snf!,(df   GNZ=f!,(df   g=f)Nsfinding outgoing largefiless	revisions)�unit�totalF)rr)r#�makeprogressrr��	enumerater�parents�nullidrrLr�r��p1�p2�addrHr�r�)r�missing�addfuncrV�progress�i�n�prXr�r��mc�mp1�mp2ra�fns                r�getlfilestouploadrgos����7�7�'�'�L�	�	�
(�)�
�|�_��'�l�
�
��g�&�D�A��O�O�A��"&�'�/�/�"3�H�"3�Q�D�K�K�7G�q�"3�G�H��$�e�,��g��-���	�	��$�E��7�|�q� ��\�\�^���f�f�h�'�'�)���f�f�h�'�'�)���A��{��	�	�!����A��{��	�	�!����A��u�����4� 0�0�B�E�S�W�W�Q��=M�4M��	�	�!������R�=�=�R�Y��B�
�c�g� 6�7��+'�
�
��I�,�,��
�
�s[�7H�1G-�G-�H�G2�BH�'H�AH�(H�H�H�-H�2
H�<H�
Hc	�^^^�URnUbUR5(a�[R"5nURR	U5 [X 5nUR
U/SSSS9upVnSSS5 WWR-UR-UR-n[U5mTHen	X�;dM
[U	5n
URRU
5(dM7URRU	5(dMY[X	U
5 Mg U$[U5mSUlUR!UR#5T5Ul['X5nURR)U/SSS9mT(dU$[X 5nTH<n
[+U
5n	UR-U	5R.(dM0[X	U
5 M> [0R0"U5nSUlUR2mU=R$[5T5-
sl/nUR$H�n
[U
5n
U
T;dU
T;a�URR-U
5R(d-URR-U
5R(dMpO,URR-U
5R6(dM�UR9U
5 M� X�lUUU4SjnX�lU$!,(df   GN�=f)z�Update standins in the working directory according to specified match

This returns (possibly modified) ``match`` object to be used for
subsequent commit process.
NFr�Tr�c�2>�T"U5(aUT;$UT;$rPri)ra�lfiles�origmatchfnr�s ���rr��&updatestandinsbymatch.<locals>.matchfn�s ����q�>�>��F�?�"���=� rB)r#r�r�r�running_statusr�r�r��added�removedr�r�r�rQrr��
_subdirlfsr��_filesr�r�r�r�rC�copyr��sortedr�r�)rr
r#�
dirtymatchr�r�r�r��
modifiedfilesr�r�r��actualfilesrar�rjrkr�s               @@@r�updatestandinsbymatchrw�s����
���B�

�}�������_�_�&�
�
�]�]�
)�
)�$�
/�'��1�J�(2�(9�(9������):�)�%�F�~�0�����+�a�g�g�5��	�	�A�
��D�!���E��%�"�5�>���9�9�#�#�H�-�-��y�y�'�'��.�.�%�d�8�<����
��
�F�#�E���?�?�5�;�;�=�&�9�E�L�%�T�1�H��}�}�!�!��2�u�e�"��H���� ��)�J����X�&������&�.�.�.��$�x�0��
�I�I�e��E�#�E���-�-�K�

�L�L�F�8�$�$�L��K�
�\�\���1�:��
��;�(�h�.��=�=�*�*�8�4�<�<��}�}�.�.�q�1�9�9��:��]�]�,�,�Q�/�;�;�����1����L�!��M��L�w0�
/�s�"K4�4
Lc�$�\rSrSrSrSrSrSrg)�automatedcommithookia�Stateful hook to update standins at the 1st commit of resuming

For efficiency, updating standins in the working directory should
be avoided while automated committing (like rebase, transplant and
so on), because they should be updated before committing.

But the 1st commit of resuming automated committing (e.g. ``rebase
--continue``) should update them, because largefiles may be
modified manually.
c��XlgrP��resuming)r`r|s  rr=�automatedcommithook.__init__
s�� �
rBc�L�UR(aSUl[X5$U$rh)r|rw)r`rr
s   r�__call__�automatedcommithook.__call__s ���=�=�!�D�M�(��5�5��LrBr{N)rrrsrtru�__doc__r=rrxrirBrryrys��	�!�rBryc�t�Uc [US5(aURS$U(aUR$S$)aReturn the function to write largefiles specific status out

If ``forcibly`` is ``None``, this returns the last element of
``repo._lfstatuswriters`` as "default" writer function.

Otherwise, this returns the function to always write out (or
ignore if ``not forcibly``) status.
�_largefilesenabled���c��grPri)r��optss  rr~�!getstatuswriter.<locals>.<lambda>'s��rB)�hasattr�_lfstatuswritersr�)r#r�forciblys   r�getstatuswriterr�s;����G�D�*>�?�?��$�$�R�(�(���9�9��,�,rB)T)�
)NNrqrP)Nr��
__future__r�
contextlibrrr+r5�mercurial.i18nr�mercurial.noder�	mercurialrrrr	r
r�rrr
rrrr��mercurial.utilsr�mercurial.dirstateutilsrr�r�r�contextmanagerrr'r<rAr?rRrWrYr�r�r�r�rVrTr�r�r�r�r�r�r�r�r�r�rr�rr�r�rr)rr.r_r7�	Exceptionr9r@rFrJrRrgrwryr�rirBr�<module>r�sf��N�"���	��������%�-��	��T�!����
���!��!�
� 
-�1�$�/M�d �

� ��*�*��24�n
�6�=�
)��$�2
�7�$�&��&
� 
4�/��=��C�
 �����<�1�
5�%�9�%�

� 
�&�<�8�Bn�b��.-rB

Youez - 2016 - github.com/yon3zu
LinuXploit