7f ddlZddlmZmZmZddlmZmZddlm Z ddl m Z ddl m Z mZmZmZmZejeZGddeZejedS) N)ListOptionalTuple) HiddenText display_path) make_command) path_to_url)AuthInfoRemoteNotFoundError RevOptionsVersionControlvcsc NeZdZdZdZdZdZedede efdZ ded e d e d e dd f d Zded e d e dd fdZded e d e dd fdZed edeeeeefffd ZededefdZededefdZededeedefdZxZS)Bazaarbzrz.bzrbranch)zbzr+httpz bzr+httpszbzr+sshzbzr+sftpzbzr+ftpzbzr+lpzbzr+filerevreturnc d|gS)Nz-r)rs x/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/vcs/bazaar.pyget_base_rev_argszBazaar.get_base_rev_args s c{desturl rev_options verbosityNc0|}td||t||dkrdg}n|dkrg}n dd|zg}t ddg||||R}||dS) NzChecking out %s%s to %srz--quiet-vcheckoutz --lightweight) to_displayloggerinforrto_args run_command)selfrrrr rev_displayflagscmd_argss r fetch_newzBazaar.fetch_new$s",,..  %         >>KEE !^^EE(Y(()E  */ 1<1D1D1F1F HK MQ    """""rcP|td||dS)Nswitchcwd)r'r)r(rrrs rr.z Bazaar.switch9s+ h44$?????rc@|tddd|}|dr(tdd|}|||td d|}|||dS) Nr%FT show_stdout stdout_onlyr0z Standalone bindz-qr/update)r'r startswithr&)r(rrroutputr+s rr6z Bazaar.update<s!!  e4"     ] + + 1$FD#66H   X4  0 0 0$ 0C0C0E0EFF t,,,,,rct|\}}}|drd|z}|||fS)Nzssh://zbzr+)superget_url_rev_and_authr7)clsrr user_pass __class__s rr;zBazaar.get_url_rev_and_authIsM$gg::3??S) >>( # # 3,CC""rlocationc`|dgdd|}|D]y}|}dD]`}||rI||d}||rt |ccS|ccSazt)Nr%FTr2)zcheckout of branch: zparent branch: r)r' splitlinesstripr7split_is_local_repositoryr r )r<r?urlslinexrepos rget_remote_urlzBazaar.get_remote_urlQs H%Tx  OO%%  D::<s@rrrs DGIGstCy\##(#7A#NQ# ####*@3@Z@j@T@@@@ -3 -Z -j -T - - - -#s#uS(3-5Q/R#####[# "c "c " " "[ ")C)C)))[)c#4[rr)loggingtypingrrrpip._internal.utils.miscrrpip._internal.utils.subprocessrpip._internal.utils.urlsr pip._internal.vcs.versioncontrolr r r r r getLoggerrRr$rregisterrrrrfs((((((((((========777777000000  8 $ $[[[[[^[[[|  Vr