ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/vcs/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyo

�
�2{Yc@s�ddlZddlZddlZddlmZddlmZddlmZm	Z	m
Z
ddlmZm
Z
ddlmZde
fd��YZeje�dS(	i����N(turlparse(tlogger(trmtreetdisplay_pathtcall_subprocess(tvcstVersionControl(tpath_to_urltBazaarcBs�eZdZdZdZdZdZd
Zdd�Z	d�Z
d
�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�ZRS(tbzrs.bzrtbranchsbzr-branch.txtsbzr+https	bzr+httpssbzr+sshsbzr+sftpsbzr+ftpsbzr+lps[# This was a Bazaar branch; to make it a branch again run:
bzr branch -r %(rev)s %(url)s .
cOs[tt|�j|||�ttdd�rWtjjdg�tjjdg�ndS(Nt
uses_fragmenttlp(	tsuperRt__init__tgetattrRtNoneRtextendtnon_hierarchical(tselfturltargstkwargs((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyRscCs�d}}x�|j�D]�}|j�s|j�jd�rEqntjd|�}|ru|jd�j�}n||j�j�jdd�d}|r|r||fSqWdS(Nt#s^bzr\s*branch\s*-r\s*(\d*)ii(NN(	Rt
splitlineststript
startswithtretsearchtgrouptendtsplit(RtcontentRtrevtlinetmatch((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytparse_vcs_bundle_files
"&cCstjdd�}|j|�tjj|�r>t|�nz/t|jd|gd|d|j	dt
�Wdt|�XdS(sCExport the Bazaar repository at the url to the destination locations-exportspip-texporttcwdt
filter_stdouttshow_stdoutN(ttempfiletmkdtemptunpacktostpathtexistsRRtcmdt_filtertFalse(Rtlocationttemp_dir((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyR%)s

cCs t|jd|gd|�dS(NtswitchR&(RR/(RtdestRtrev_options((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyR46scCs$t|jddg|d|�dS(Ntpulls-qR&(RR/(RR5R6((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytupdate9scCs�|j�\}}|r1d|g}d|}ng}d}|j||||�r�tjd||t|�f�t|jddg|||g�ndS(Ns-rs (to revision %s)tsChecking out %s%s to %sR
s-q(tget_url_revtcheck_destinationRtnotifyRRR/(RR5RR!R6trev_display((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytobtain=s
	cCsAtt|�j�\}}|jd�r7d|}n||fS(Nsssh://sbzr+(R
RR:R(RRR!((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyR:Ks
cCs�t|jdgdtd|�}xp|j�D]b}|j�}xMdD]E}|j|�rG|j|�d}|j|�r�t|�S|SqGWq.WdS(NtinfoR(R&scheckout of branch: sparent branch: i(scheckout of branch: sparent branch: (
RR/R1RRRRt_is_local_repositoryRR(RR2turlsR"txtrepo((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytget_urlRs

cCs/t|jdgdtd|�}|j�dS(NtrevnoR(R&i����(RR/R1R(RR2trevision((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytget_revision`scCs�t|jdgdtd|�}g}xl|j�D]^}tjd|�}|r4|jd�}|jd�}|j|j�|j�f�q4q4Wt	|�S(NttagsR(R&s([.\w-]+)\s*(.*)$ii(
RR/R1RRRRtappendRtdict(RR2RHttag_revsR"t
tags_matchttagR!((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytget_tag_revses&c	Cs�|j|�}|j�jd�s1d|}n|j�jdd�d}|sWdS|j|�}|j|�}||kr�d|||f}nd|j�|f}d|||fS(	Nsbzr:sbzr+t-iis%s-%ss
%s-dev_r%ss%s@%s#egg=%s(RDtlowerRtegg_nameRRRGRN(	RtdistR2t	find_tagsRCtegg_project_nametcurrent_revRKt
full_egg_name((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pytget_src_requirementqs
(R	sbzr+https	bzr+httpssbzr+sshsbzr+sftpsbzr+ftpsbzr+lpN(t__name__t
__module__tnametdirnamet	repo_nametbundle_filetschemestguideRRR$R%R4R8R>R:RDRGRNRW(((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyRs"	
	
							(R,R)Rtpip.backwardcompatRtpip.logRtpip.utilRRRtpip.vcsRRtpip.downloadRRtregister(((s?/opt/alt/python33/lib/python3.3/site-packages/pip/vcs/bazaar.pyt<module>sx

Zerion Mini Shell 1.0