
    6h_                    *   S SK Jr  SSKJr  SSKJrJr  SSKJrJ	r	J
r
  0 r\R                  \R                  R                  5        \	R                  " \5      r\" SSS/ \" S	5      \" S
5      4SS/ \" S5      \" S5      4/\R                  S9S 5       rg)    )annotations   )_)chainsawverify)error	registrartransactions   admin::verify   cs   checks   add a checks   CHECK   os   options   pass an option to a checks   OPTION)helpcategoryc                   UR                  5       R                  S5      (       d  [        R                  " [	        S5      5      e[
        R                  " U5      (       a  U R                  [	        S5      5        UR                  S/ 5      nUR                  S/ 5      n[        R                  " XX4S9nU R                  [	        S5      [        U5      -  5        [        UR                  5       S S	9 HO  u  pgU R                  [	        S
5      U-  5        U" 5       nU(       d  M2  U R                  [	        S5      U-  5        MQ     g)zverify the integrity of the repository

Alternative UI to `hg verify` with a lot more control over the
verification process and better error reporting.
s   file:s$   cannot verify bundle or remote reposs-   abandoned transaction found - run hg recover
checkoption)namesoptionss   running %d checks
c                    U S   $ )Nr    )xs    :/usr/lib/python3/dist-packages/mercurial/admin_commands.py<lambda>admin_verify.<locals>.<lambda>0   s    !A$    )keys   running %s
s   found %d errors
N)url
startswithr   Abortr   r
   has_abandoned_transactionwarngetr   
get_checksstatuslensorteditems)	uirepooptschecksr   funcsnamefuncerrorss	            r   admin_verifyr.      s     88:  **kk!CDEE,,T22
CDEXXgr"Fhhx$GdfFEIIa&'#e*45U[[]?

		!O$t+,6GGA*+f45	 @r   N)
__future__r   i18nr   adminr   r    r   r	   r
   tableupdatecommand_tableCATEGORY_MAINTENANCEr.   r   r   r   <module>r8      s    #  # + + 	 X$$ %


E
" 		xQ~.(<	y"a <=q|L --66r   