idpLnddlmZmZddlmZddlmZddlZddlZddl m Z m Z ddl m Z e r ddlmZdd lmZd d gZejd ZeejGd d eZejZejZejZejZejZejZGdd eZdS)) SubmoduleUpdateProgress)find_first_remote_branch)InvalidGitRepositoryErrorN) TYPE_CHECKINGUnion) Commit_ish)Repo) IterableList RootModuleRootUpdateProgresszgit.objects.submodule.rootczeZdZdZdeejejdzD\ZZZ Z ejdzZdZ dS)rz;Utility class which adds more opcodes to the UpdateProgresscg|]}d|zS)r).0xs O/opt/cloudlinux/venv/lib/python3.11/site-packages/git/objects/submodule/root.py zRootUpdateProgress.s)333Q333rN) __name__ __module__ __qualname____doc__ranger _num_op_codesREMOVE PATHCHANGE BRANCHCHANGE URLCHANGE __slots__rrrrrsgEE33n:N.s"CCCa15BF?????rzChanging url of submodule cg|] }|j Sr)r+)rrQs rrz%RootModule.update..s1G1G1GQ!&1G1G1Gr)rEc4g|]}|jjk|Sr) remote_head branch_namerPs rrz%RootModule.update..s)'_'_'_aq}PRP^?^?^?^?^?^rzSubmodule branch named z. was not available in new submodule remote at z,Couldn't find original remote-repo at url %rzCurrent sha %s was not contained in the tracking branch at the new remote, setting it the the remote's tracking branchz"Done adjusting url of submodule %rzChanging branch of submodule zbranch: Created from HEAD)logmsgz$Done changing branch of submodule %r)rArCrDrErFrMrH)rArBrCrDrErFrGrH)7r%barerrr4r5 log_entry oldhexshar(r1 IndexError list_itemssetlen enumeraterBEGINupdater+abspath_parent_commitremoveENDr* module_existsrmover-rLremotesr! create_remotefetchrefs ValueErrorrV delete_remoterenametraverselogwarninghexshar.r r6r7createOSErrorset_tracking_branchr reference Exceptionerrorstrtype))r:r@rArBrCrDrErFrGrHprefixr% cur_commitpsmssmsspsmsssmsrrsmlen_rrsmirsmopcsmslen_csmscsmpsmnnsmmrmtssmrrmt_for_deletionremote orig_namesmshafoundrrefcsmmrtbrerrrRs) @rrazRootModule.updateIsX 9> ]+,[\\ \  )++H  ! Fyx )J&1&*kk$)2E2Eb2I2I2S&T&TO&-1MMM((N"111&0OOO1 #'++o">">/3oodRao.b.bD-1__T-B-BCIIEs88D4"%ch-7ch&&3+<+<+>+>&OO * VXV]V]V]_b_j_j_jlnlvlv!ww #LUKKKOOj( !IBG!SS ##%%[v((. iikk"{CCCC4CCCDDII$OO % 1 ! ( &Y[Y`Y`Y`bebibibikmkqkq)r r $+LC')1G1G$1G1G1G'G'G'G'G&)&7&7BF&C&C # 8 < < <$''_'_'_'_38'_'_'_#`#`de#e#e*4*+->>>266)C+&+&%&48 0.2!.!.F'-zSW'<'<;A(8(-(=$4#;'*4yyA~~;?7(8(8/H,Z]`]d,d/*/*)* -=,A # 1 12B C C C!$ 9 5 5 5 )+ (-'*x0@'A)-)=)=)?)?!.!.A'(x5'8'804(-(9 (- !C %(KK)T(* %&%&%& 15 0BBI %OO #i ! ( &)MQSQX)Y Y ~88!!L0$"F!wwwII  '5"$))++C#&;D*.@@ & h ? ? ? ?D&)hoo$'$&N+F'6'"'" $+DDD&)hsBN&C&CD  334LTSUSa4b4bccc 25CH.!,.$"%Kbg%UU _t p     IIc#hh           B II#5!!%     ##%% DJJryy{{++22"&%1!+=!) '$/#-3    sbY A BY B# Y"B##TY$'W  Y $W30Y2W33A)Y Z'*ZZc|jS)z8:return: the actual repository containing the submodules)r%r>s rrLzRootModule.modules yr)r%r )r<N) NTFTFNFFF)r<r )rrrrr"r3r0r?r r boolrarL __classcell__)r;s@rr r -s5GGIK           48"#(6:! XXz4/0XX X  X ! X23XXXX XXXXt r)baserrutilrgit.excrr6loggingtypingrr git.typesr git.repor git.utilr __all__ getLoggerrp addHandler NullHandlerrr`rerr r!rr rrrrs++++++++******------ (''''''' &%%%%%% - .g455"w"$$%%%    "!.  (  * xxxxxxxxxxr