ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/vcs/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/vcs/__pycache__/bazaar.cpython-33.pyc

�
�2{YOc@s�ddlZddlZddlZddlmZddlmZddlmZm	Z	m
Z
ddlmZm
Z
ddlmZGdd�de
�Zeje�dS(	iN(uurlparse(ulogger(urmtreeudisplay_pathucall_subprocess(uvcsuVersionControl(upath_to_urlcs�|EeZdZdZdZdZdZd"ZdZd#�fdd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Z�fdd�Zdd�Zdd�Zdd�Zd d!�Z�S($uBazaarubzru.bzrubranchubzr-branch.txtubzr+httpu	bzr+httpsubzr+sshubzr+sftpubzr+ftpubzr+lpu[# This was a Bazaar branch; to make it a branch again run:
bzr branch -r %(rev)s %(url)s .
cs[tt|�j|||�ttdd�rWtjjdg�tjjdg�ndS(Nu
uses_fragmentulp(	usuperuBazaaru__init__ugetattruurlparseuNoneu
uses_fragmentuextendunon_hierarchical(uselfuurluargsukwargs(u	__class__(u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyu__init__suBazaar.__init__cCs�d}}x�|j�D]�}|j�s|j�jd�rEqntjd|�}|ru|jd�j�}n||j�d�j�jdd�d}|r|r||fSqWdS(Nu#u^bzr\s*branch\s*-r\s*(\d*)ii(NN(	uNoneu
splitlinesustripu
startswithureusearchugroupuendusplit(uselfucontentuurlurevulineumatch((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuparse_vcs_bundle_files
",uBazaar.parse_vcs_bundle_filecCstjdd�}|j|�tjj|�r>t|�nz/t|jd|gd|d|j	dd�Wdt|�XdS(	uCExport the Bazaar repository at the url to the destination locationu-exportupip-uexportucwdu
filter_stdoutushow_stdoutNF(utempfileumkdtempuunpackuosupathuexistsurmtreeucall_subprocessucmdu_filteruFalse(uselfulocationutemp_dir((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuexport)s

u
Bazaar.exportcCs t|jd|gd|�dS(Nuswitchucwd(ucall_subprocessucmd(uselfudestuurlurev_options((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuswitch6su
Bazaar.switchcCs$t|jddg|d|�dS(Nupullu-qucwd(ucall_subprocessucmd(uselfudesturev_options((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuupdate9su
Bazaar.updatecCs�|j�\}}|r1d|g}d|}ng}d}|j||||�r�tjd||t|�f�t|jddg|||g�ndS(Nu-ru (to revision %s)uuChecking out %s%s to %subranchu-q(uget_url_revucheck_destinationuloggerunotifyudisplay_pathucall_subprocessucmd(uselfudestuurlurevurev_optionsurev_display((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuobtain=s
	u
Bazaar.obtaincsAtt|�j�\}}|jd�r7d|}n||fS(Nussh://ubzr+(usuperuBazaaruget_url_revu
startswith(uselfuurlurev(u	__class__(u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuget_url_revKs
uBazaar.get_url_revcCs�t|jdgddd|�}xp|j�D]b}|j�}xMdD]E}|j|�rG|j|�d}|j|�r�t|�S|SqGWq.WdS(	Nuinfoushow_stdoutucwducheckout of branch: uparent branch: iF(ucheckout of branch: uparent branch: (
ucall_subprocessucmduFalseu
splitlinesustripu
startswithusplitu_is_local_repositoryupath_to_urluNone(uselfulocationuurlsulineuxurepo((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuget_urlRs

uBazaar.get_urlcCs/t|jdgddd|�}|j�dS(Nurevnoushow_stdoutucwdiFi����(ucall_subprocessucmduFalseu
splitlines(uselfulocationurevision((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuget_revision`suBazaar.get_revisioncCs�t|jdgddd|�}g}xl|j�D]^}tjd|�}|r4|jd�}|jd�}|j|j�|j�f�q4q4Wt	|�S(Nutagsushow_stdoutucwdu([.\w-]+)\s*(.*)$iiF(
ucall_subprocessucmduFalseu
splitlinesureusearchugroupuappendustripudict(uselfulocationutagsutag_revsulineu
tags_matchutagurev((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuget_tag_revses&uBazaar.get_tag_revsc	Cs�|j|�}|j�jd�s1d|}n|j�jdd�d}|sWdS|j|�}|j|�}||kr�d|||f}nd|j�|f}d|||fS(	Nubzr:ubzr+u-iiu%s-%su
%s-dev_r%su%s@%s#egg=%s(uget_urluloweru
startswithuegg_nameusplituNoneuget_revisionuget_tag_revs(	uselfudistulocationu	find_tagsurepouegg_project_nameucurrent_revutag_revsu
full_egg_name((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuget_src_requirementqs
uBazaar.get_src_requirement(ubzrubzr+httpu	bzr+httpsubzr+sshubzr+sftpubzr+ftpubzr+lpN(u__name__u
__module__u__qualname__unameudirnameu	repo_nameubundle_fileuschemesuguideuNoneu__init__uparse_vcs_bundle_fileuexportuswitchuupdateuobtainuget_url_revuget_urluget_revisionuget_tag_revsuget_src_requirement(u
__locals__((u	__class__u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyuBazaars"

uBazaar(uosutempfileureupip.backwardcompatuurlparseupip.loguloggerupip.utilurmtreeudisplay_pathucall_subprocessupip.vcsuvcsuVersionControlupip.downloadupath_to_urluBazaaruregister(((u'/tmp/pip-bsqfwp-build/pip/vcs/bazaar.pyu<module>sx

Zerion Mini Shell 1.0