ok

Mini Shell

Direktori : /lib/python2.7/site-packages/pip/vcs/
Upload File :
Current File : //lib/python2.7/site-packages/pip/vcs/bazaar.pyc

�
��abc@@s�ddlmZddlZddlZddlZyddlmZWnek
rgddl	ZnXddl
mZmZddl
mZmZddlmZeje�Zdefd��YZeje�dS(	i(tabsolute_importN(tparse(trmtreetdisplay_path(tvcstVersionControl(tpath_to_urltBazaarcB@s}eZdZdZdZdZdd	�Zd
�Zd�Z	d�Z
d
�Zd�Zd�Z
d�Zd�Zd�ZRS(tbzrs.bzrtbranchsbzr+https	bzr+httpssbzr+sshsbzr+sftpsbzr+ftpsbzr+lpcO@s[tt|�j|||�ttdd�rWtjjdg�tjjdg�ndS(Nt
uses_fragmenttlp(	tsuperRt__init__tgetattrturllib_parsetNoneR
textendtnon_hierarchical(tselfturltargstkwargs((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyR
scC@sstjdd�}|j|�tjj|�r>t|�nz#|jd|gd|dt�Wdt|�XdS(sU
        Export the Bazaar repository at the url to the destination location
        s-exportspip-texporttcwdtshow_stdoutN(	ttempfiletmkdtemptunpacktostpathtexistsRtrun_commandtFalse(Rtlocationttemp_dir((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyR&s

cC@s|jd|gd|�dS(NtswitchR(R (RtdestRtrev_options((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyR$5scC@s!|jddg|d|�dS(Ntpulls-qR(R (RR%R&((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pytupdate8scC@s�|j�\}}|r1d|g}d|}ng}d}|j||||�r�tjd||t|��|jddg|||g�ndS(Ns-rs (to revision %s)tsChecking out %s%s to %sR	s-q(tget_url_revtcheck_destinationtloggertinfoRR (RR%RtrevR&trev_display((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pytobtain;s

cC@sAtt|�j�\}}|jd�r7d|}n||fS(Nsssh://sbzr+(RRR*t
startswith(RRR.((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyR*Ls
cC@s�|jdgdtd|�}xp|j�D]b}|j�}xMdD]E}|j|�rD|j|�d}|j|�r�t|�S|SqDWq+WdS(NR-RRscheckout of branch: sparent branch: i(scheckout of branch: sparent branch: (	R R!t
splitlineststripR1tsplitt_is_local_repositoryRR(RR"turlstlinetxtrepo((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pytget_urlSs

cC@s,|jdgdtd|�}|j�dS(NtrevnoRRi����(R R!R2(RR"trevision((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pytget_revision`scC@sw|j|�}|sdS|j�jd�s;d|}n|j�jdd�d}|j|�}d|||fS(Nsbzr:sbzr+t-iis%s@%s#egg=%s(R:RtlowerR1tegg_nameR4R=(RtdistR"R9tegg_project_nametcurrent_rev((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pytget_src_requirementes
cC@stS(s&Always assume the versions don't match(R!(RR%R&((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyt
check_versionos(Rsbzr+https	bzr+httpssbzr+sshsbzr+sftpsbzr+ftpsbzr+lpN(t__name__t
__module__tnametdirnamet	repo_nametschemesRR
RR$R(R0R*R:R=RDRE(((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyRs						
		
(t
__future__RtloggingRRturllibRRtImportErrorturlparset	pip.utilsRRtpip.vcsRRtpip.downloadRt	getLoggerRFR,Rtregister(((s2/usr/lib/python2.7/site-packages/pip/vcs/bazaar.pyt<module>s
_

Zerion Mini Shell 1.0