\x89\x50\x4E\x47\x0D\x0A\x1A\x0A PNG  \x89\x50\x4E\x47\x0D\x0A\x1A\x0A  13\c@@s[ddlmZddlZddlZddlZddlZddlZddlZddlm Z m Z ddl m Z m Z mZmZmZddlmZiZiZiZgZddd d d d d dhZddZdZdZdZdddZdZdZd8Z dZ!dZ"dddZ#dZ$dZ%ddZ&d Z'd!Z(d"Z)d#Z*ddd$Z+d%Z,d&e-fd'YZ.d(Z/dd)Z0d*Z1d+Z2d,Z3d-Z4d.Z5d/Z6d0Z7d1Z8d2Z9e:d3Z;e<d4Z=d5Z>d6Z?d7Z@dS(9i(tabsolute_importNi(t_tgettext(tcmdutilt configitemsterrortpycompattutil(t stringutilthbisectt bookmarkstcolort parentrevspectprogresstinterhgtinotifythgciac#@s`rfd}n d}x8tD]0}t|}|r(||r(||fVq(q(WdS(Nc@sQxJddgD]<}jd||}|dk r |jd r tSq WdS(Ns%sshgext.%st extensionst!(tconfigtNonet startswithtTrue(tnametformattconf(tui(s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytenabled3scS@stS(N(R(R((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt9s(t_ordert _extensions(RRRtmodule((Rs:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyR1s   cC@sd}yt|}Wn^tk rtxNtjD]<\}}|jd|sc|jd|r1|}Pq1q1WnX|st|n|S(s'return module with given extension namet.t/N(RRtKeyErrort iteritemstendswith(Rtmodtktv((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytfind?s & cC@s|jdd}tjtj|}tj|}tj|}tjj|rtjj |\}}t j ||g\}}}t j ||||Syt j ||SWn+tk r}|js||_nnXdS(NR R(treplaceRtnormpatht expandpathRtfsdecodetostpathtisdirtsplittimpt find_modulet load_modulet load_sourcetIOErrortfilename(R.t module_nametdtftfdtfpathtdesctexc((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytloadpathMs  cC@sLttj|}|jd}x!|dD]}t||}q/W|S(s#import and return the moduleR i(t __import__RtsysstrR0tgetattr(RR%t componentstcomp((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt_importh_s cC@s|rt|d|}nytd|}Wntk r}|rc||d|d|nytd|}Wqtk r}|r||d||nt|}qXnX|S(Nshgext.%ss hgext3rd.%s(R>RDt ImportError(RR.t reportfuncR%terr((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt _importextgscC@sR|jddrN|jd|tj||f|jrN|jqNndS(Ntdevelsdebug.extensionss<debug.extensions: - could not import %s (%s): trying %s (t configbooltdebugRt forcebytestrt debugflagt traceback(RRGtfailedtnext((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt_reportimporterror{s   cC@st|tttfr9x|D]}t||qWnt|trx|jD]9\}}t||td|tj|f|qUWn7t|t drt j d||fddndS(Ns%s.%susunicode %r found in %sthintsuse b'' to make it byte string( t isinstancetlisttsetttuplet_rejectunicodetdicttitemsRRLttypeRtProgrammingError(RtxstxR&R'((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRWs  'tnorepot optionalrepot inferrepocC@sx|jD]s\}}|d}gtD]}tj||s*|^q*}|sZq ntjddj|dd|q WdS(s4Check if extension commands have required attributesismissing attributes: %ss, RRs'use @command decorator to register '%s'N(R#t _cmdfuncattrsRt safehasattrRR[tjoin(RtcmdtabletcteR9tatmissing((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt_validatecmdtables +cC@sx0dddgD]}t|t||iqWxKdddddd gD]1}t||d }|rLt||jqLqLWt|t|did S( s=Sanity check for loadable tables provided by extension moduleRdt colortablet configtabletfilesetpredicatet internalmergetrevsetpredicatettemplatefiltert templatefuncttemplatekeywordN(RWRARt_tableRi(RR%ttto((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt_validatetabless cG@sdS(N(R(Rg((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRsc C@s|jds|jdr+|d}n|}|tkrAdS|tkrUt|S|d|dt| %r extension loaded in %s tminimumhgversionitnsP(third party extension %s requires version %s or newer of Mercurial; disabling) s& - validating extension tables: %r s( - invoking registered callbacks: %r scallbacks extension %rtloadeds > callbacks completed in %s (Rt_builtinRRRttimedcmRHtbindRQtelapsedRAt versiontupletwarnRRuRtappendt_aftercallbackstgetR( RRR.tlogt loadingtimet shortnametstatsR%tminvertfn((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytloads:     ! *      cC@stt|dd}|ry||Wqtk r|}|jdttj|}|jt d||ft SXntS(Ntuisetuptforces&*** failed to set up extension %s: %s ( RARRt ExceptionRNRRRLR~RtFalse(RRRtinsttmsg((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt _runuisetupscC@stt|dd}|ryEy||Wn0tk r_tj|jrUn|nXWqtk r}|jdt t j |}|j t d||ftSXnt S(NtextsetupRs&*** failed to set up extension %s: %s (RARRt TypeErrorRt getargspectargsRRNRRRLR~RR(RRRRR((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt _runextsetups c@sjddr$fd}n d}tjt}jd}|dk rg|D]$\}}||kr^||f^q^}ntt}|d|rdnd|d t|tj d 1}x'|D]\} } | r4| d d !d kr4| t kr|d| n| d t | dS(?NRIsdebug.extensionsc@sjd||ddS(Nsdebug.extensions: tlabelsdebug.extensions(RK(Rtvalues(R(s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRs c_@sdS(N(R(Rgtkw((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRsRsloading %sextensions s additional ts- processing %d entries sload all extensionsiiRs$ - skipping disabled extension: %r s.*** failed to import extension %s from %s: %s s&*** failed to import extension %s: %s s *** (%s) s&> loaded %d extensions, total time %s Rktloadconfigtables!- loading configtable attributes s- executing uisetup hooks s all uisetups - running uisetup for %r s uisetup %rs& - the %r extension uisetup failed s > uisetup for %r took %s s> all uisetup took %s s- executing extsetup hooks s all extsetups - running extsetup for %r s extsetup %rs' - the %r extension extsetup failed s > extsetup for %r took %s s> all extsetup took %s s$ - disabling broken %r extension s%- executing remaining aftercallbacks taftercallbackss. - extension %r not loaded, notify callbacks Rxs+> remaining aftercallbacks completed in %s (R tcommandst filemergetfilesettrevsetttemplatefilterst templatefuncst templatekws)- loading extension registration objects Rdt loadcmdtableRjtloadcolortableRlt loadpredicateRmtloadinternalmergeRnRot loadfilterRpt loadfunctionRqt loadkeywordsload registration objectss0> extension registration object loading took %s s*> extension %s take a total of %s to load sextension loading complete (+RJt collectionst defaultdicttintRRtlenRRRzt_disabledextensionsRRRRLR~RRSRtHintRRRNt _loadextraRURtaddR|RRRRtclearRR RRRRRRRtsortedt timecount(Rt whitelistRRtresultR&R'tnewindexRRR.RRtearlyextraloaderstbrokentalluisetupstatstallextetupstatsRRR RRRRRRRt extraloaderst extension_msg((Rs:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytloadalls  4                      :         !c C@sx|t|D]p}t|}|s'q nxQ|D]I\}}}t||d}|dk r.t|||||q.q.Wq WdS(N(RRRAR( RRRRRtobjnamet loadermodt loadernametextraobj((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRxs  cC@sI|tkr,t|dk }|d|ntj|gj|dS(sRun the specified function after a named extension is loaded. If the named extension is already loaded, the callback will be called immediately. If the named extension never loads, the callback will be called after all extensions have been loaded. The callback receives the named argument ``loaded``, which is a boolean indicating whether the dependent extension actually loaded. RxN(RRRt setdefaultR(t extensiontcallbackRx((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt afterloadeds c@sfd}|S(sPartial function application Returns a new function that is the partial application of args and kwargs to func. For example, f(1, 2, bar=3) === bind(f, 1)(2, bar=3)c@s||S(N((RgR(Rtfunc(s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytclosures((RRR((RRs:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyR{scC@szy|j|_Wntk r#nXt|d|_t|d|_|jjt|di||_||_dS(s.Copy and add some useful attributes to wrappert __module__t__doc__t__dict__N( t__name__tAttributeErrorRARRRtupdatet _origfunct_unboundwrapper(twraptorigfntunboundwrapper((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt_updatewrappers  c C@stj||\}}x0|jD]"\}}||kr%|} Pq%q%W|d} tjtj|tj| } t| | ||dk r| j |7_ nt |} | | d<|dk r| dc|7s ( RRRXtdocsR#RERR Rt splitlines(RtpathsR RR.R((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytdisableds   cC@s{y:ddlm}|tkr#dSt|jj|SWnttfk rSnXt}||krwt ||SdS(s;find a specific disabled extension from hgext. returns desci(RN( RRRRRRRERR R(RRR((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt disabledexts   cc@stj|g}x|r|j}t|tjsU|jtj|qnxa|jD]V}t|tj s}q_nt|j tj sq_n|j j dkrq_n|Vq_WqWdS(s7Scan @command() decorators in the tree starting at nodeRN( RtdequetpopleftRStastt FunctionDeftextendtiter_child_nodestdecorator_listtCallRtNametid(tnodettodoR8((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt _walkcommands  cC@st|d}tj|j|}WdQXi}xt|D]}|jsXqCn|jd}t|tjrtj |j }n*tj rCt|tj rC|j }nqCdgdf||R((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyRscC@s/gtjD]\}}|dkr |^q S(s4return short names of extensions that failed to loadN(RR#R(RR%((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt notloaded$scC@stj|dr0t|jr0|j}n$tj|drN|j}nd}t|ttfrdjd|D}n|S(s8return version information from given module as a stringt getversiont __version__RR cs@s|]}tj|VqdS(N(Rtbytestr(RRt((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pys 2s( RRbtcallableRBRCRSRTRVRc(Rtversion((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pyt moduleversion(s cC@st|dd}|dkS(Nt testedwithsships-with-hg-core(RAR(Rt exttestedwith((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytismoduleinternal5s(R^R_R`(At __future__RR$RRR1RR-ti18nRRRRRRRRtutilsRRRRRRyRRR(R>RDRHRQRWRaRiRuRRRRRRR{RRRRRRRRR RRR R!R.R7R=RR?RRRARGRJ(((s:/usr/lib64/python2.7/site-packages/mercurial/extensions.pytst      (       &   2  1