�
�c@s`ddklZlZddklZddkZddkZddkZd�Zd�Z dS(i�(tnullidtshort(t_NcCs,|i�}zt|�SWd|i�XdS(N(tlockt_verifytrelease(trepoR((s#/sys/lib/python/mercurial/verify.pytverifysc"+s�h}h}h}d}t��dg�dg�|i�|i�|i}|i�ptitd���nd���fd��d��fd����fd�������fd�}������fd�}�i t
ij��ip�o)�i
td��od pd�nt��dj�t|�dj��i
td
��h}|�dd�x�|D]�} �i| ��|�| �|| gd�y^�i��}
|i|
dg�i| �x+|
dD]}|i|g�i| �q�q�tj
o)}�| td
�t��|�q�Xq�W�i
td��h}||dd�x:|D]2} |i| ��||| �||i�g�d�}
�|jo|�=n!�|
td�t��d�y�x|i��i�D]h\}}|p�|
td��q|djo1|i|h�}||jo| ||<q}qqWWq�tj
o)}�|
td�t��|�q�Xq�W�i
td���o�xitg}|D]$}||D]}|||fq�~�D])\}}�|td�t|��qWd}xMt|�D];}||jo(||d}
�|
td�|�qWqWWn�o�x�t|�D]�}||jozyP|i|�}tg}||D]�||i|i���q��}
Wn
d}
nX�|
td�|�q�q�Wn�i
td��t�}x`|ii�D]O\}}}|p�dtd�|�qo|djo|i|�qoqoWtt|�t|�B�}x�D]�y||}Wnt j
o
g}nX|o|d}
nd}
y|i|�}Wn5t!i"j
o&}�|
td�||�q�XxQ|i#�D]C}y|i$|�Wq�t j
o�|
td�|�q�Xq�W||||
�h}xb|D]Z} |d 7}|i| ��||| �|||�}
||joK�o5�||jo$�|
td�t��|�q~||�=ny�|i��}|i%��}t|�|i&| �jo\t|i'���|i&| �jo3�|
td�t|�|i&| �f|�qnWn8tj
o,}�|
td�t��||�nXy�|o�|i|d�}t|�p2�|
td�|dt|d �f|�q
|d t(jo5�i)td �||
|dt|d �f�q
|i|d �nWq�tj
o,}�|
td!�t��||�q�Xq�||jo�g}||i�D]"\�} ||i| ��fql ~}x>t|�D],\}
}!�|
td"�t|!�|�q�Wq�q�x"|D]}�td#�|�q��i
td$�t|�t��|f��do�i*td%��d�n�doK�i*td&��d��o!�i*td'�t���nd SndS((Nis$cannot verify bundle or remote reposcsx|djo�i|�nd}d||f}|od||f}n�id|d��dcd7<dS(Nt?s%s: %ss%s@%st s
ii(tNonetaddtwarn(tlinkrevtmsgtfilename(terrorstbadrevstui(s#/sys/lib/python/mercurial/verify.pyterr"s
csHt|t�o�itd���n�|d||f|�dS(Ntinterrupteds%s: %s(t
isinstancetKeyboardInterruptRR(R
RtinstR(RR(s#/sys/lib/python/mercurial/verify.pytexc-scs%�i|d��dcd7<dS(Ns
ii(R(R(Rtwarnings(s#/sys/lib/python/mercurial/verify.pyR3scs�t|�o-�p�o�|td�|�dSn|i�}|do"�dtd�|d|�n|do"�dtd�|d|�n|itijo#�p�td�|�q� �o�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 checksizeR
tversiontrevlogtREVLOGV0(tobjtnameR
td(RRthavemfthavecltrevlogv1(s#/sys/lib/python/mercurial/verify.pytchecklog7s""c s�|i|i|��}|djp�o�||jo�|djp|t��jotd�}n
td�}�d|||f|�|o*�td�ditt|���nd}ny�|i|�\}} ||jo=|t jo0�|td�t
|�t
��f|�n| |jo=| t jo0�|td�t
| �t
|�f|�nWn8tj
o,}
�|td�t
|�|
|�nX||jo(�|td �||�f|�n||�<|S(
Nis)rev %d points to nonexistent changeset %ds(rev %d points to unexpected changeset %ds (expected %s)R sunknown parent 1 %s of %ssunknown parent 2 %s of %sschecking parents of %ssduplicate revision %d (%d)(R
trevRRR
tjointmaptstrtparentsRRt Exception(RtitnodetseentlinkrevstftlrRtp1tp2R(tclRR#RRtn(s#/sys/lib/python/mercurial/verify.pyt
checkentryHs.! *
!%(
(
s!repository uses revlog format %d
ischecking changesets
t changelogisunpacking changeset %sschecking manifests
tmanifests%s not in changesetssfile without name in manifests /dev/nullsreading manifest delta %ss0crosschecking files in changesets and manifests
s'changeset refers to unknown manifest %ss in changeset but not in manifests in manifest but not in changesetschecking files
scannot decode filename '%s'sbroken revlog! (%s)smissing revlog!s%s not in manifestss unpacked size is %s, %s expectedsunpacking %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)
(+tsetRR7R8tcancopytutiltAbortRR
RRRtverbosetstatusRR-treadt
setdefaulttappendR+Rtgett readdeltat iteritemstsortedtfiletminR
R&tstoret datafilesRtKeyErrorterrortRevlogErrortfilestremovetrenamedtsizetrevisionRtnoteR("Rt
mflinkrevstfilelinkrevst filenodest revisionstmfR%R6R.R,tchangesR0RR1tfntfnst_[1]tmtctflt_[2]t
storefilestf2RPRMR/tetfftttrptfl2t_[3]tlR-((R4RR"R$RR#RRRR5RRs#/sys/lib/python/mercurial/verify.pyRs>
!)'
)?!
"
A
"
$%,(
#&,
@
,(
R-RRti18nRRR;RKRR(((s#/sys/lib/python/mercurial/verify.pys<module>s$
|