Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/mercurial/verify.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@suddlmZmZddlmZddlZddlZddlZddlZd�Z	d�Z
d�ZdS(i�(tnullidtshort(t_NcCs,|j�}zt|�SWd|j�XdS(N(tlockt_verifytrelease(trepoR((s4/sys/lib/python2.7/site-packages/mercurial/verify.pytverify
scCs)x"d|kr$|jdd�}qW|S(Ns//t/(treplace(tf((s4/sys/lib/python2.7/site-packages/mercurial/verify.pyt	_normpathsc%s�|j�}i}i}i}d}t��dg�dg�|j�|j�|j}tj|j��|j�s�tj	t
d���nd���fd��d��fd����fd�������fd�}������fd�}tj
j|jd��r9�jt
d	��n�jtjk��js[�r��jt
d
��rvdpyd�nt��dk�t|�dk��jt
d��t}i}	|�d
d�t|�}
x|D]}�jt
d�|d|
dt
d���j|�}|�|||	|gd
�y}�j|�}
|
dtkr�|j|
dg�j|�t}nx1|
dD]%}|jt|�g�j|�q�WWq�t k
r�t}�|t
d�t!|�|�q�q��jt
d�d��jt
d��i}	|rE||dd�nt|�}
xO|D]G}�jt
d�|d|
dt
d��|j|�}|||||	|j"|g�d�}||kr�||=n �|t
d�t!|�d�ywxp|j#|�j$�D]Y\}}|s3�|t
d��q|dkr|jt|�i�j||�qqWWqXt k
r�}�|t
d�t!|�|�qXXqXW�jt
d�d��jt
d��t|�t|�t|�}
d}�r
x�t%g|D]#}||D]}||f^qq�D]a\}}|d7}|tkrWq/n�jt
d�|d|
��|t
d�t!|��q/Wd}xpt%|�D]_}|d7}�jt
d�|d|
�||kr�||d}�|t
d�|�q�q�Wn�r�x�t%|�D]�}|d7}�jt
d�|d|
�||kr yH|j&|�}t'g||D]}|j(|j)|��^qx�}Wnt k
r�d}nX�|t
d�|�q q Wn�jt
d�d��jt
d ��t�}xi|j*j+�D]X\}}}|sK�dt
d!�|�q|dks^�r|j,t|��qqWt%t|�t|�B�}t|�}
xyt-|�D]k\}}�jt
d�|d"|d|
�y||}Wnt.k
rg}nX|r|d}nd}y|j&|�}Wn3t/j0k
rd}�|t
d#�||�q�nXxO|j1�D]A}y|j2|�Wqrt.k
r��|t
d$�|�qrXqrW||||�i}	d}x�|D]�}|d7}|j|�}|||||	||�}||krg	�rY	|||krY	�|t
d%�t!|�|�qg	|||=ny�t|j|��}|j3|�}||j4|�kr�|j5|��|j4|�kr�|t
d&�||j4|�f|�q�Wn6t k
r/
}�|t
d'�t!|�||�nXy0|r_|dk	r��jr��|�}t} x.|j6�D] }!|d|!krm
t} Pqm
qm
W| s��t
d(�||f�q�n|j&|d�}"t|"�s�|t
d)�|dt!|d�f|�q_|dtkrK�j7t
d*�|||dt!|d�f�q_|"j)|d�nWq�t k
r�}�|t
d+�t!|�||�q�Xq�W||kr�g||j$�D]\}}||f^q�}#x=t%|#�D],\}}$�|t
d,�t!|$�|�q�q�q�W�jt
d�d�x"|D]}�t
d-�|�q9W�jt
d.�t|�t��|f��dr��jt
d/��d�n�dr�jt
d0��d��r�jt
d1�t'���ndSdS(2Nis$cannot verify bundle or remote reposcst|dk	r�j|�nd}d||f}|rKd||f}n�jd|d��dcd7<dS(Nt?s%s: %ss%s@%st s
ii(tNonetaddtwarn(tlinkrevtmsgtfilename(tbadrevsterrorstui(s4/sys/lib/python2.7/site-packages/mercurial/verify.pyterr,scsat|t�r(�jtd���nt|�sCt|�}n�|d||f|�dS(Ntinterrupteds%s: %s(t
isinstancetKeyboardInterruptRRtstrtrepr(RRtinstR(RR(s4/sys/lib/python2.7/site-packages/mercurial/verify.pytexc7scs%�j|d��dcd7<dS(Ns
ii(R(R(Rtwarnings(s4/sys/lib/python2.7/site-packages/mercurial/verify.pyR?scs�t|�r4�s�r4�|td�|�dS|j�}|drk�dtd�|d|�n|dr��dtd�|d|�n|jtjkr��s�td�|�q��r�td�|�ndS(Nsempty or missing %sisdata length off by %d bytesisindex contains %d extra bytess"warning: `%s' uses revlog format 1s"warning: `%s' uses revlog format 0(tlenRt	checksizeRtversiontrevlogtREVLOGV0(tobjtnameRtd(Rthaveclthavemftrevlogv1R(s4/sys/lib/python2.7/site-packages/mercurial/verify.pytchecklogCs
!
!csJ|j|j|��}|dks6�r)||kr)|dksT|t��krctd�}ntd�}�d|||f|�|r |r�|�dkr�g|D](}�|�|j�|kr�|^q�}Wq�k
r�q��td�djtt	|���nd}ny�|j
|�\}	}
|	|kr�|	tkr��|td�t|	�t|�f|�n|
|kr�|
tkr��|td�t|
�t|�f|�nWn6tk
r}�|td	�t|�||�nX||kr<�|td
�|||f|�n|||<|S(Nis)rev %d points to nonexistent changeset %ds(rev %d points to unexpected changeset %dis (expected %s)R
sunknown parent 1 %s of %ssunknown parent 2 %s of %sschecking parents of %ssduplicate revision %d (%d)(
RtrevR RRtfilenodet	ExceptiontjointmapRtparentsRR(R%titnodetseentlinkrevsR
tlrRtltp1tp2R(tclRRR(t	lrugetctxR(s4/sys/lib/python2.7/site-packages/mercurial/verify.pyt
checkentryTs:
,
)	 $''
tjournals-abandoned transaction found - run hg recover
s!repository uses revlog format %d
ischecking changesets
t	changelogtcheckingttotaltunitt
changesetsisunpacking changeset %sschecking manifests
tmanifestt	manifestss%s not in changesetssfile without name in manifests	/dev/nullsreading manifest delta %ss0crosschecking files in changesets and manifests
t
crosscheckings'changeset refers to unknown manifest %ss in changeset but not in manifests in manifest but not in changesetschecking files
scannot decode filename '%s'titemsbroken revlog! (%s)smissing revlog!s%s not in manifestss unpacked size is %s, %s expectedsunpacking %ss1warning: copy source of '%s' not in parents of %ss)empty or missing copy source revlog %s:%ss5warning: %s@%s: copy source revision is nullid %s:%s
schecking rename of %ss%s in manifests not foundswarning: orphan revlog '%s's,%d files, %d changesets, %d total revisions
s%d warnings encountered!
s!%d integrity errors encountered!
s+(first damaged changeset appears to be %d)
(8t
unfilteredtsetRR>RCtutiltlrucachefunct	changectxtcancopytAbortRRtostpathtexiststsjoinRR"R#R$tverbosetstatusR tFalsetprogressR3treadRt
setdefaulttappendtTrueRR.Rtgett	readdeltat	iteritemstsortedtfiletminRR,tstoret	datafilesRt	enumeratetKeyErrorterrortRevlogErrortfilestremovetrenamedtsizetrevisionR1tnote(%Rt
mflinkrevstfilelinkrevst	filenodest	revisionstmfR+R<trefersmfR4R@R2tntchangesR
RR6tfntcounttmtctflt
storefilestf2RiRfR5tetfftrpR7tctxtfoundtpctxtfl2tfnsR3((RR:RRRR(R)R;R*RRRs4/sys/lib/python2.7/site-packages/mercurial/verify.pyRsr						#
(	'(
('
 "-( 0
!
 
9

 	"





#$$'"%+/+


(R3RRti18nRRNR#RIRdRRR(((s4/sys/lib/python2.7/site-packages/mercurial/verify.pyt<module>s$		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.