/usr/lib/python2.6/site-packages/pbr
NameSizeModeActions
cmd/-0755rm
hooks/-0755rm
tests/-0755rm
builddoc.py90840644editdlrm
builddoc.pyc77030644editdlrm
core.py62410644editdlrm
core.pyc34060644editdlrm
extra_files.py10960644editdlrm
extra_files.pyc7630644editdlrm
find_package.py10430644editdlrm
find_package.pyc7450644editdlrm
git.py99170644editdlrm
git.pyc93090644editdlrm
options.py23710644editdlrm
options.pyc5320644editdlrm
packaging.py229910644editdlrm
packaging.pyc230420644editdlrm
pbr_json.py11880644editdlrm
pbr_json.pyc7520644editdlrm
testr_command.py54460644editdlrm
testr_command.pyc57490644editdlrm
util.py248780644editdlrm
util.pyc176260644editdlrm
version.py185610644editdlrm
version.pyc165280644editdlrm
__init__.py00644editdlrm
__init__.pyc1280644editdlrm
Edit: /usr/lib/python2.6/site-packages/pbr/git.pyc (9309B)
Ñò ;vVc@sNddklZddkZddklZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk l Z eedd„Zd„Zd„Zd„Zd „Zd dd „Zd „Zd „Zd„Zdd„Zd„Zdd„Zd„Zdeiiddd„Z dde!ƒd„Z"dS(iÿÿÿÿ(tunicode_literalsN(tlog(toptionsc Cs|oti}ti}n d}d}tiiƒ}|o|i|ƒnti|d|d|d|ƒ}|iƒ}|i o*|o#t i i d||i fƒ‚nt |ƒdjp|d p|diƒ odS|diƒiddƒS( Ntstdouttstderrtenvu%s returned %diuuutf-8ureplace(t subprocesstPIPEtNonetostenvirontcopytupdatetPopent communicatet returncodet distutilsterrorstDistutilsErrortlentstriptdecode( tcmdtthrow_on_errortbufferRt out_locationt err_locationtnewenvtoutputtout((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_run_shell_command!s&      1cKs>t|ttfƒp |g}ntdd|g||S(Nugitu --git-dir=%s(t isinstancetlistttupleR(Rtgit_dirtkwargs((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_run_git_command<s cCsNytdddgƒSWn0tj o$}|itijodS‚nXdS(Nugitu rev-parseu --git-diru(RtOSErrorterrnotENOENT(te((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_get_git_directoryCs cCs/ytddgƒWntj otSXtS(Nugitu --version(RR%tFalsetTrue(((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_git_is_installedMs cCst|dtiƒS(u¦Find the highest tag from a list. Pass in a list of tag strings and this will return the highest (latest) as sorted by the pkg_resources version parser. tkey(tmaxt pkg_resourcest parse_version(ttags((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_get_highest_tagXsucCsg}|djo tƒ}n|o>tidƒtddg|ƒ}|ididƒƒ}ng}|D]}|o ||qpqp~S(uÈBehave like a file finder entrypoint plugin. We don't actually use the entrypoints system for this because it runs at absurd times. We only want to do this when we are building an sdist. u2[pbr] In git context, generating filelist from gituls-filesu-ztuutf-8N(Rt_run_git_functionsRtinfoR$tsplitR(tdirnameR"t file_listt_[1]tf((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_find_git_filesas   cCsMtddg|ƒ}d|jo|iddƒdSd|jodSdS(Nudescribeu--alwaysu-iiþÿÿÿu.i(R$trsplitR(R"tdescribe((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_get_raw_tag_infoss   cCst|ƒdjS(Ni(R>(R"((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pytget_is_release|scCs(d}tƒo tƒ}n|pdS(N(RR,R)(R"((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyR4€s  cCs6|p tƒ}n|otdddg|ƒSdS(u1Return the short sha for this repo, if it exists.ulogu-n1u--pretty=format:%hN(R4R$R(R"((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pytget_git_short_sha‡s  ccsàt}d }|dfVxÂ|D]º\}}}|oTt|ƒ}t|ƒd}|p|dfVn|dtd|d|ƒfVn|idƒp:|idƒo|d }n|d td |ƒfVnt}qWd S( uçConvert a oneline log iterator to formatted strings. :param changelog: An iterator of one line log entries like that given by _iter_log_oneline. :return: An iterator over (release, formatted changelog) tuples. uCHANGES ======= u-u u%(tag)s %(underline)s ttagt underlineuMerge u.iÿÿÿÿu * %(msg)s tmsgN(R+RR2Rtdictt startswithtendswithR*(t changelogt first_linetcurrent_releasethashR1RCRB((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_iter_changelog‘s$  cCs0|djo tƒ}n|pgSt|ƒS(uQIterate over --oneline log entries if possible. This parses the output into a structured form but does not apply presentation logic to the output - making it suitable for different uses. :return: An iterator of (hash, tags_set, 1st_line) tuples, or None if changelog generation is disabled / not available. N(RR)t_iter_log_inner(R"((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyt_iter_log_oneline¬s  c cs:tidƒdddg}t||ƒ}x|idƒD]÷}|iƒ}t|ƒdjoq;n|didƒo*d |jo|id ƒdiƒ}nd i|dƒ}d |joRtg}|id ƒd id ƒdD]}||idƒd qí~ƒ}n tƒ}|d ||fVq;WdS(uIterate over --oneline log entries. This parses the output intro a structured form but does not apply presentation logic to the output - making it suitable for different uses. :return: An iterator of (hash, tags_set, 1st_line) tuples. u[pbr] Generating ChangeLogulogu --onelineu --decorateu iiu(u)u utag:iutag: u,N( RR5R$R6RRERtjointset( R"tlog_cmdRGtlinet line_partsRCR9RAR1((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyRL½s"  ! H c CsJtiƒ}|p h}nti|ddƒ}|odS|p*td|ƒ}|ot|ƒ}qon|pdStidƒtii |dƒ}tii |ƒoti |ti ƒ odSt i|ddd ƒiiƒ}z1|~}x!|D]\} } |i| ƒqWWdQXtiƒ} tid | |ƒdS( u-Write a changelog based on the git changelog.uskip_changeloguSKIP_WRITE_GIT_CHANGELOGNR"u[pbr] Writing ChangeLogu ChangeLoguwtencodinguutf-8u![pbr] ChangeLog complete (%0.1fs)(ttimeRtget_boolean_optionRMRKRR5R tpathRNtexiststaccesstW_OKtiotopent__exit__t __enter__twrite( R"tdest_dirt option_dictRGtstartt should_skipt new_changelogR9tchangelog_filetreleasetcontenttstop((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pytwrite_git_changelogßs0     /  u.cCssti|ddƒ}|odStiƒ}tii|dƒ}tii|dƒ}tii|ƒoti|tiƒ odSt i dƒd}|djo t ƒ}n|o”g}dd g} |t | |ƒid ƒ7}g} |D]$} ti|| ƒp | | qóqó~ }t d|ƒ} tid | tiƒ} g}| D].}|o!||id d ƒd iƒqRqR~} || 7}tt|ƒƒ}t|dƒiiƒ}z†|~}tii|ƒoCt|dƒiiƒ}z |~}|i|iƒƒWdQXn|id i|ƒd idƒƒWdQXntiƒ}t i d||ƒdS(u&Create AUTHORS file using git commits.u skip_authorsuSKIP_GENERATE_AUTHORSNu AUTHORS.inuAUTHORSu[pbr] Generating AUTHORSu.(jenkins@review|infra@lists|jenkins@openstack)ulogu--format=%aN <%aE>u uCo-authored-by:.+u:iuwburbuutf-8u[pbr] AUTHORS complete (%0.1fs)(RRURTR RVRNRWRXRYRR5RR)R$R6tretsearchtfindallt MULTILINERtsortedROR[R\R]R^treadtencode(R"R_R`RbRat old_authorst new_authorst ignore_emailstauthorst git_log_cmdR9tatco_authors_outt co_authorst_[2]tsignedt_[3]tnew_authors_fht_[4]told_authors_fhRg((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pytgenerate_authorsüsD       8  ; && (#t __future__Rtdistutils.errorsRRR&RZR RiRRTR/tpbrRR*R+RRR$R)R,R2R;R>R?R4R@RKRMRLRVtcurdirRhRDR~(((s$/tmp/pip-build-cD3xZi/pbr/pbr/git.pyts4               "