Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 ÝPfÛã @s¦ddlmZddlZddlZddlZyddlmZWnek rPddl ZYnXddl m Z m Z ddl mZmZddlmZejeƒZGdd„deƒZejeƒdS) é)Úabsolute_importN)Úparse)ÚrmtreeÚ display_path)ÚvcsÚVersionControl)Ú path_to_urlcszeZdZdZdZdZdZd ‡fd d „ Zd d„Zdd„Z dd„Z dd„Z ‡fdd„Z dd„Z dd„Zdd„Zdd„Z‡ZS)!ÚBazaarÚbzrz.bzrÚbranchúbzr+httpú bzr+httpsúbzr+sshúbzr+sftpúbzr+ftpúbzr+lpNcsDtt|ƒj|f|ž|Žttddƒr@tjjdgƒtjjdgƒdS)NÚ uses_fragmentZlp)Úsuperr Ú__init__ÚgetattrÚ urllib_parserÚextendZnon_hierarchical)ÚselfÚurlÚargsÚkwargs)Ú __class__©ú/usr/lib/python3.6/bazaar.pyrs zBazaar.__init__c CsRtjddƒ}|j|ƒtjj|ƒr*t|ƒz|jd|g|dd�Wdt|ƒXdS)zU Export the Bazaar repository at the url to the destination location z-exportzpip-ÚexportF)ÚcwdÚ show_stdoutN)ÚtempfileZmkdtempÚunpackÚosÚpathÚexistsrÚ run_command)rÚlocationZtemp_dirrrrr&s     z Bazaar.exportcCs|jd|g|d�dS)NÚswitch)r )r')rÚdestrÚ rev_optionsrrrr)5sz Bazaar.switchcCs|jddg||d�dS)NZpullz-q)r )r')rr*r+rrrÚupdate8sz Bazaar.updatecCsl|jƒ\}}|r"d|g}d|}ng}d}|j||||ƒrhtjd||t|ƒƒ|jddg|||gƒdS)Nz-rz (to revision %s)ÚzChecking out %s%s to %sr z-q)Ú get_url_revZcheck_destinationÚloggerÚinforr')rr*rÚrevr+Z rev_displayrrrÚobtain;s   z Bazaar.obtaincs,tt|ƒjƒ\}}|jdƒr$d|}||fS)Nzssh://zbzr+)rr r.Ú startswith)rrr1)rrrr.Ls zBazaar.get_url_revcCsl|jdgd|d�}xT|jƒD]H}|jƒ}x:dD]2}|j|ƒr.|j|ƒd}|j|ƒr\t|ƒS|Sq.WqWdS)Nr0F)r!r úcheckout of branch: úparent branch: é)r4r5)r'Ú splitlinesÚstripr3ÚsplitZ_is_local_repositoryr)rr(ZurlsÚlineÚxÚreporrrÚget_urlSs   zBazaar.get_urlcCs|jdgd|d�}|jƒdS)NZrevnoF)r!r r6éÿÿÿÿ)r'r7)rr(ZrevisionrrrÚ get_revision`szBazaar.get_revisioncCsT|j|ƒ}|sdS|jƒjdƒs(d|}|jƒjddƒd}|j|ƒ}d|||fS)Nzbzr:zbzr+ú-r6rz %s@%s#egg=%s)r=Úlowerr3Zegg_namer9r?)rZdistr(r<Zegg_project_nameZ current_revrrrÚget_src_requirementes  zBazaar.get_src_requirementcCsdS)z&Always assume the versions don't matchFr)rr*r+rrrÚ check_versionoszBazaar.check_version)r r r rrrr)N)Ú__name__Ú __module__Ú __qualname__ÚnameÚdirnameZ repo_nameZschemesrrr)r,r2r.r=r?rBrCÚ __classcell__rr)rrr s   r )Z __future__rZloggingr$r"ZurllibrrÚ ImportErrorZurlparseZ pip.utilsrrZpip.vcsrrZ pip.downloadrZ getLoggerrDr/r ÚregisterrrrrÚs   _