/opt/alt/python34/lib/python3.4/site-packages/pip/vcs
NameSizeModeActions
__pycache__/-0755rm
bazaar.py49430644editdlrm
bazaar.pyc60380644editdlrm
bazaar.pyo60380644editdlrm
git.py78980644editdlrm
git.pyc83760644editdlrm
git.pyo83220644editdlrm
mercurial.py58200644editdlrm
mercurial.pyc67960644editdlrm
mercurial.pyo67960644editdlrm
subversion.py106400644editdlrm
subversion.pyc103970644editdlrm
subversion.pyo102770644editdlrm
__init__.py87480644editdlrm
__init__.pyc111240644editdlrm
__init__.pyo109700644editdlrm
Edit: /opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyo (8322B)
Ñò *‘Rec @s¿ddkZddkZddkZddklZddklZlZddkl Z l Z ddk l Z ddk lZlZeiZeiZde fd„ƒYZe ieƒdS( iÿÿÿÿN(tcall_subprocess(t display_pathtrmtree(tvcstVersionControl(tlogger(t url2pathnameturlparsetGitcBs¤eZdZdZdZdZdZd Zdd „Z d „Z d „Z d „Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(tgits.gittclonesgit+https git+httpssgit+sshsgit+gitsgit+files git-clone.txtss# This was a Git repo; to make it a repo again run: git init git remote add origin %(url)s -f git checkout %(rev)s c Osî|oÇt|ƒ\}}}}}|idƒo˜|t|idƒƒ } | t|ƒiddƒidƒ} t||| ||fƒ}|idƒd} || t|| || ||fƒ}qÎntt |ƒi |||ŽdS(Ntfilet/s\t+i( turlsplittendswithtlentlstripRtreplacet urlunsplittfindtsuperRt__init__( tselfturltargstkwargstschemetnetloctpathtquerytfragmenttinitial_slashestnewpatht after_plus((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyRs%/cCsÍd}}x¼|iƒD]®}|iƒ p|iƒidƒoqntid|ƒ}|o|idƒiƒ}ntid|ƒ}|o|idƒiƒ}n|o|o ||fSqWdS(Nt#s$git\s*remote\s*add\s*origin(.*)\s*-fis^git\s*checkout\s*-q\s*(.*)\s*(NN(tNonet splitlineststript startswithtretsearchtgroup(RtcontentRtrevtlinet url_matcht rev_match((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytparse_vcs_bundle_file%s  $c Cs‡tiddƒ}|i|ƒzV|idƒp|d}nt|idddd|gd|id td |ƒWd t|ƒXd S( s@Export the Git repository at the url to the destination locations-exportspip-R scheckout-indexs-as-fs--prefixt filter_stdoutt show_stdouttcwdN( ttempfiletmkdtemptunpackRRtcmdt_filtertFalseR(Rtlocationttemp_dir((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytexport4s cCsd|i|ƒ}d|}||jo ||gS||jo ||gStid|ƒ|SdS(s¶Check the revision options before checkout to compensate that tags and branches may need origin/ as a prefix. Returns the SHA1 of the branch or tag if found. s origin/%ss5Could not find a tag or branch '%s', assuming commit.N(tget_refsRtwarn(RR,tdestt rev_optionst revisionst origin_rev((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytcheck_rev_optionsAs     cCsPt|idd|gd|ƒt|iddg|d|ƒ|i|ƒdS(Ntconfigsremote.origin.urlR3tcheckouts-q(RR7tupdate_submodules(RR?RR@((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytswitchSs cCstt|iddgd|ƒ|o|i|d||ƒ}nt|idddg|d|ƒ|i|ƒdS(Ntfetchs-qR3itresets--hard(RR7RCRF(RR?R@((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytupdate[s #cCs |iƒ\}}|o|g}d|}ndg}d}|i||||ƒo®tid||t|ƒfƒt|idd||gƒ|i|ƒ|oZ|i|||ƒ}|i |ƒi |dƒp$t|iddg|d |ƒqqndS( Ns (to %s)s origin/mastertsCloning %s%s to %sR s-qiRER3( t get_url_revtcheck_destinationRtnotifyRRR7RFRCt get_revisionR'(RR?RR,R@t rev_display((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytobtaines    cCs.t|iddgdtd|ƒ}|iƒS(NRDsremote.origin.urlR2R3(RR7R9R&(RR:R((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytget_urlxscCs.t|iddgdtd|ƒ}|iƒS(Ns rev-parsetHEADR2R3(RR7R9R&(RR:t current_rev((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyRO~s!cCsÿt|idgdtd|ƒ}h}xÑ|iƒiƒD]½}|iddƒ\}}|iƒ}d }|idƒo|tdƒ}nI|idƒo|tdƒ}n%|idƒo|tdƒ}n|d j o|iƒ||¡s s%s-%ss%s-devs %s@%s#egg=%s( RRtlowerR'tegg_nameRVR$ROR=tdicttitems( RtdistR:t find_tagstrepotegg_project_nameRTtrefstnames_by_committ full_egg_name((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pytget_src_requirement–s  cCs~d|ijoI|iiddƒ|_tt|ƒiƒ\}}|iddƒ}ntt|ƒiƒ\}}||fS(s; Prefixes stub URLs like 'user@hostname:user/repo.git' with 'ssh://'. That's required because although they use SSH they sometimes doesn't work with a ssh:// scheme (e.g. Github). But we need a scheme for parsing. Hence we remove it again afterwards and return it as a stub. s://sgit+s git+ssh://sssh://RK(RRRRRL(RRR,((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyRL«s cCsPtiitii|dƒƒpdSt|idddddgd|ƒdS(Ns .gitmodulest submoduleRJs--inits --recursives-qR3(tosRtexiststjoinRR7(RR:((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyRF¼s"(R sgit+https git+httpssgit+sshsgit+gitsgit+fileN(t__name__t __module__tnametdirnamet repo_nametschemest bundle_filetguideR$RR0R<RCRGRJRQRRROR=RiRLRF(((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyR s&          (R4R(tos.pathRktpip.utilRRRtpip.vcsRRtpip.logRtpip.backwardcompatRRRRRtregister(((s</opt/alt/python34/lib/python3.4/site-packages/pip/vcs/git.pyts     µ