/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs
NameSizeModeActions
bazaar.py38030644editdlrm
bazaar.pyc50300644editdlrm
git.py102180644editdlrm
git.pyc109150644editdlrm
mercurial.py34720644editdlrm
mercurial.pyc48940644editdlrm
subversion.py86870644editdlrm
subversion.pyc86970644editdlrm
__init__.py123490644editdlrm
__init__.pyc139210644editdlrm
Edit: /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyc (10915B)
Ρς ₯Wc @@sθddklZddkZddkZddkZddklZddkl Z ddk l Z ddk l ZddklZlZddklZlZe iZe iZeieƒZd efd „ƒYZeieƒdS( i(tabsolute_importN(tsamefile(t BadCommand(tparse(trequest(t display_pathtrmtree(tvcstVersionControltGitcB@sζeZdZdZdZdZdd„Zd „Zd „Z d „Z d „Z d „Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zed„ƒZRS(tgits.gittclonesgit+https git+httpssgit+sshsgit+gitsgit+filec O@sρ|oΚt|ƒ\}}}}}|idƒo›|t|idƒƒ } | ti|ƒiddƒidƒ} t||| ||fƒ}|idƒd} || t|| || ||fƒ}qΡnt t |ƒi |||ŽdS(Ntfilet/s\t+i( turlsplittendswithtlentlstripturllib_requestt url2pathnametreplacet urlunsplittfindtsuperR t__init__( tselfturltargstkwargstschemetnetloctpathtquerytfragmenttinitial_slashestnewpatht after_plus((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyRs %c C@s{tiddƒ}|i|ƒzJ|idƒp|d}n|idddd|gdtd |ƒWd t|ƒXd S( s@Export the Git repository at the url to the destination locations-exportspip-R scheckout-indexs-as-fs--prefixt show_stdouttcwdN(ttempfiletmkdtemptunpackRt run_commandtFalseR(Rtlocationttemp_dir((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytexport4s cC@sc|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_short_refstloggertwarning(Rtrevtdestt rev_optionst revisionst origin_rev((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytcheck_rev_optionsAs      cC@s|i|ƒi|dƒS(s  Compare the current sha to the ref. ref may be a branch or tag name, but current rev will always point to a sha. This means that a branch or tag will never compare as True. So this ultimately only matches against exact shas. i(t get_revisiont startswith(RR4R5((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt check_versionUscC@sJ|idd|gd|ƒ|iddg|d|ƒ|i|ƒdS(Ntconfigsremote.origin.urlR'tcheckouts-q(R+tupdate_submodules(RR4RR5((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytswitch^scC@sn|iddgd|ƒ|o|i|d||ƒ}n|idddg|d|ƒ|i|ƒdS(Ntfetchs-qR'itresets--hard(R+R8R>(RR4R5((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytupdateds  cC@sφ|iƒ\}}|o|g}d|}ndg}d}|i||||ƒoštid||t|ƒƒ|idd||gƒ|oM|i|||ƒ}|i||ƒp!|iddg|d|ƒqαn|i|ƒndS( Ns (to %s)s origin/mastertsCloning %s%s to %sR s-qR=R'( t get_url_revtcheck_destinationR1tinfoRR+R8R;R>(RR4RR3R5t rev_display((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytobtainps"  cC@sQ|idddgdtd|ƒ}|iƒd}|idƒd}|iƒS( s+Return URL of the first remote encountered.R<s --get-regexpsremote\..*\.urlR&R'it i(R+R,t splitlinestsplittstrip(RR-tremotest first_remoteR((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytget_url‰s cC@s+|iddgdtd|ƒ}|iƒS(Ns rev-parsetHEADR&R'(R+R,RL(RR-t current_rev((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyR9’scc@sn|idgdtd|ƒ}xI|iƒiƒD]5}|iddƒ\}}|iƒ|iƒfVq1WdS(s4Yields tuples of (commit, ref) for branches and tagssshow-refR&R'RIiN(R+R,RLRJRK(RR-toutputtlinetcommittref((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt get_full_refs—s cC@s |idƒS(Ns refs/remotes/(R:(RRU((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt is_ref_remoteŸscC@s |idƒS(Ns refs/heads/(R:(RRU((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt is_ref_branch’scC@s |idƒS(Ns refs/tags/(R:(RRU((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt is_ref_tag₯scC@s/t|i|ƒ|i|ƒ|i|ƒfƒ S(s0A ref is a commit sha if it is not anything else(tanyRWRXRY(RRU((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt is_ref_commit¨s  cC@s |i|ƒS(N(R0(RR-((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytget_refs±scC@s·h}xͺ|i|ƒD]™\}}d}|i|ƒo|tdƒ}nI|i|ƒo|tdƒ}n%|i|ƒo|tdƒ}n|dj o||||}tii|ƒ}||jot i d|ƒdSqqWt ||ƒodStii ||ƒS( s:Return the relative path of setup.py to the git repo root.s rev-parses --git-dirR&R's..ssetup.pysGCould not find setup.py for directory %s (tried all parent directories)N(R+R,RLtosR tisabstjointexiststdirnameR1R2R]Rtrelpath(RR-tgit_dirtroot_dirt orig_locationt last_location((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyt_get_subdirectoryΓs$"  cC@s©|i|ƒ}|iƒidƒpd|}n|iƒiddƒd}|pdS|i|ƒ}d|||f}|i|ƒ}|o|d|7}n|S(Nsgit:sgit+t-iis %s@%s#egg=%ss&subdirectory=(ROtlowerR:tegg_nameRKR]R9Rj(RtdistR-trepotegg_project_nameRQtreqt subdirectory((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pytget_src_requirementήscC@s•d|ijo`d|ijpt‚|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://sfile:sgit+s git+ssh://sssh://RC(RtAssertionErrorRRR RD(RRR3((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyRDμscC@sMtiitii|dƒƒpdS|idddddgd|ƒdS(Ns .gitmodulest submoduleRBs--inits --recursives-qR'(R`R RcRbR+(RR-((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyR>ύs "c C@sytt|ƒi|ƒotSy0|ƒidgd|dtddƒ}| SWn$tj otid|ƒtSXdS(Ns rev-parseR'R&t on_returncodetignoresKcould not determine if %s is under git control because git is not available( RR tcontrols_locationtTrueR+R,RR1tdebug(tclsR-tr((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyRxs   (sgitsgit+https git+httpssgit+sshsgit+gitsgit+fileN(t__name__t __module__tnameRdt repo_nametschemesR]RR/R8R;R?RBRHROR9RVRWRXRYR[R\R0RjRsRDR>t classmethodRx(((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyR s2               (t __future__RtloggingR(tos.pathR`t pip.compatRtpip.exceptionsRtpip._vendor.six.moves.urllibRt urllib_parseRRt pip.utilsRRtpip.vcsRRRRt getLoggerR}R1R tregister(((sC/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/vcs/git.pyts     ώ