-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/extensions.pyc

ó
Ì\,Tc@s
ddlZddlZddlZddlZddlZddlmZmZiZgZ	dddddgZ
dd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zed„Zd„Zd„Zd„Zd„Zed„Zed„Zd„ZdS(iÿÿÿÿN(t_tgettextthbisectt	bookmarkst
parentrevspectinterhgtinotifyc#s`ˆr‡fd†}n	d„}x8tD]0}t|}|r(||ƒr(||fVq(q(WdS(NcsQxJddgD]<}ˆjd||ƒ}|dk	r
|jdƒr
tSq
WdS(Ns%sshgext.%st
extensionst!(tconfigtNonet
startswithtTrue(tnametformattconf(tui(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytenabledscSstS(N(R(R
((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt<lambda>s(t_ordert_extensions(RRR
tmodule((Rs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRs	

cCsŽd}yt|}Wn^tk
rtxNtjƒD]<\}}|jd|ƒsc|jd|ƒr1|}Pq1q1WnX|sŠt|ƒ‚n|S(s'return module with given extension namet.t/N(R
RtKeyErrort	iteritemstendswith(R
tmodtktv((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytfinds
&cCsÎ|jddƒ}tjtj|ƒƒ}tjj|ƒrˆtjj|ƒ\}}tj	||gƒ\}}}tj
||||ƒSytj||ƒSWn+tk
rÉ}|j
sÃ||_
n‚nXdS(NRR(treplacetutiltnormpatht
expandpathtostpathtisdirtsplittimptfind_moduletload_moduletload_sourcetIOErrortfilename(R$tmodule_nametdtftfdtfpathtdesctexc((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytloadpath,s	cCsï|jdƒs|jdƒr+|d}n|}|tkrAdS|tkrUt|Sdt|<|r{t|d|ƒ}nYd„}y|d|ƒ}Wn9tk
rÓ}|jd|||fƒ||ƒ}nX|t|<tj|ƒ|S(Nshgext.shgext/ishgext.%scSsCt|ƒ}|jdƒ}x!|dD]}t||ƒ}q&W|S(NRi(t
__import__R&tgetattr(R
Rt
componentstcomp((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytimporthLs
s*could not import hgext.%s (%s): trying %s
(	Rt_ignoreR
RR4tImportErrortdebugRtappend(RR
R$t	shortnameRR9terr((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytload<s(

		

cCs›|jdƒ}ttƒ}xÆ|D]¾\}}|rM|ddkrMq"qMnyt|||ƒWq"tk
rw‚q"tk
rß}|r¯|jtdƒ|||fƒn|jtdƒ||fƒ|jƒràdSq"Xq"Wx;t|D]/}t	t
|ddƒ}|rï||ƒqïqïWxrt|D]f}t	t
|ddƒ}|r-y||ƒWq“tk
r|j
jdkr…‚n|ƒq“Xq-q-WdS(	NRiRs.*** failed to import extension %s from %s: %s
s&*** failed to import extension %s: %s
ituisetuptextsetup(tconfigitemstlenRR@tKeyboardInterruptt	ExceptiontwarnRt	tracebackR6RR
t	TypeErrort	func_codetco_argcount(RtresulttnewindexR
R$tinstRARB((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytloadall\s>	

c
sÇtˆƒst‚tj||ƒ\}}x0|jƒD]"\}}||kr7|}Pq7q7W|d‰‡‡fd†}tˆdƒ|_tˆdƒ|_t|ƒ}	||	d<t	|	ƒ||<|S(s~Wrap the command named `command' in table

    Replace command in the command table with wrapper. The wrapped command will
    be inserted into the command table specified by the table argument.

    The wrapper will be called like

      wrapper(orig, *args, **kwargs)

    where orig is the original (wrapped) function, and *args, **kwargs
    are the arguments passed to it.
    ics"tjˆƒtjˆƒ||ŽS(N(R tchecksignature(targstkwargs(torigfntwrapper(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytwrap•st__doc__t
__module__(
tcallabletAssertionErrortcmdutiltfindcmdRR6RVRWtlistttuple(
ttabletcommandRTtaliasestentrytaliastetkeyRUtnewentry((RSRTs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytwrapcommand€s


csYtˆƒst‚‡‡fd†}t||ƒ‰tˆƒsEt‚t|||ƒˆS(sµWrap the function named funcname in container

    Replace the funcname member in the given container with the specified
    wrapper. The container is typically a module, class, or instance.

    The wrapper will be called like

      wrapper(orig, *args, **kwargs)

    where orig is the original (wrapped) function, and *args, **kwargs
    are the arguments passed to it.

    Wrapping methods of the repository object is not recommended since
    it conflicts with extensions that extend the repository by
    subclassing. All extensions that need to extend methods of
    localrepository should use this subclassing trick: namely,
    reposetup() should look like

      def reposetup(ui, repo):
          class myrepo(repo.__class__):
              def whatever(self, *args, **kwargs):
                  [...extension stuff...]
                  super(myrepo, self).whatever(*args, **kwargs)
                  [...extension stuff...]

          repo.__class__ = myrepo

    In general, combining wrapfunction() with subclassing does not
    work. Since you cannot control what other extensions are loaded by
    your end users, you should play nicely with others by using the
    subclass trick.
    csˆˆ||ŽS(N((RQRR(RSRT(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRUÃs(RXRYR6tsetattr(t	containertfuncnameRTRU((RSRTs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytwrapfunction¡s!cCs2ddl}tjjtjj|jƒƒ}ytj|ƒ}Wntk
rTiSXi}xÐ|D]È}|jdƒr¥|j	ddƒd}tjj
||ƒ}nQ|}tjj
||dƒ}tjj|ƒsÛqbn|rötjj|ƒ}n||ksb|tksb|dkr qbn|||<qbW|S(	s~find paths of disabled extensions. returns a dict of {name: path}
    removes /__init__.py from packages if strip_init is TrueiÿÿÿÿNs.pyRiis__init__.pyt__init__(
thgextR#R$tdirnametabspatht__file__tlistdirtOSErrorRtrsplittjointexistsR(t
strip_initRltextpathtfilestextsRcR
R$((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_disabledpathsËs*!

$cCsþg}|jƒ}x7|d dks2|jƒrK|jƒ}|sPqqW|d }|dksn|dkrí|d}xv|ré|jƒj|ƒrÃ|j|ƒd}|r¿|j|ƒnPn
|sÍdS|j|ƒ|jƒ}q{WndSdj|ƒS(	sÖreturn the top-level python documentation for the given file

    Loosely inspired by pydoc.source_synopsis(), but rewritten to
    handle triple quotes and to return the whole text instead of just
    the synopsisit#is"""s'''itN(treadlinetstriptrstripRR&R=R
Rs(tfileRLtlinetstart((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
_moduledocæs* 

	
cCscyt|ƒ}Wntk
r$dSXt|ƒ}|jƒ|rUt|ƒjƒdStdƒSdS(sBretrieve help synopsis of a disabled extension (without importing)Nis(no help text available)(topenR+R‚tcloseRt
splitlinesR(R$Rtdoc((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
_disabledhelps

cCs¤y1ddlm}td„|jjƒDƒƒSWnttfk
rJnXtƒ}|s^iSi}x9|jƒD]+\}}t|ƒ}|rq|||<qqqqW|S(sCfind disabled extensions from hgext. returns a dict of {name: desc}iÿÿÿÿ(t	__index__css3|])\}}|tkr|t|ƒfVqdS(N(RR(t.0R
R2((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pys	<genexpr>s	(	RlRˆtdicttdocsRR;tAttributeErrorRyR‡(RˆtpathsRxR
R$R†((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisableds		cCs{y:ddlm}|tkr#dSt|jj|ƒƒSWnttfk
rSnXtƒ}||krwt	||ƒSdS(s;find a specific disabled extension from hgext. returns desciÿÿÿÿ(RˆN(
RlRˆRRR‹tgetR;RŒRyR‡(R
RˆR((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisabledext+s	csÚtdtƒ}|s'tj|ƒ‚n‡‡fd†}d}|j|dƒ}|rl||||ƒ}n|s®x9|jƒD](\}}||||ƒ}|rPqqWn|rÇd|jkrÇ|Stj|ƒ‚dS(sUimport disabled extensions until cmd is found.
    returns (cmdname, extname, module)Rucsëyt|d|ƒ}Wntk
r+dSXy+tj|t|diƒˆƒ\}}WnPtjtjfk
rwdStk
r©ˆjt	dƒ|ƒˆj
ƒdSXx1|D]}|j|ƒr±|}Pq±q±W|d}|||fS(Nshgext.%stcmdtables&warning: error finding commands in %s
i(R4RFRZR[R6terrortAmbiguousCommandtUnknownCommandRGRRHR(tcmdR
R$RR`Ratc(tstrictR(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyR[Bs&
	"



t
DEPRECATEDN(RyRR’R”R
tpopRRV(RR•R—RR[textR$R
((R—Rs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisabledcmd:s cCsui}xhtƒD]]\}}t|jƒp4tdƒ}|rS|jdƒd}n|jƒdjƒ||<qW|S(s+return a dict of {name: desc} of extensionss(no help text available)Riÿÿÿÿi(RRRVRR&R…R}(R>RxtenameRšR†((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRhscCs‰tj|dƒr0t|jƒr0|jƒ}n$tj|dƒrN|j}nd}t|ttfƒr…djd„|Dƒƒ}n|S(s8return version information from given module as a stringt
getversiont__version__R{Rcss|]}t|ƒVqdS(N(tstr(R‰to((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pys	<genexpr>}s(	R tsafehasattrRXRRžt
isinstanceR\R]Rs(Rtversion((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
moduleversionss(R'R#R RZR’ti18nRRRRR:R
RRR4R@RORfRjtFalseRyR‚R‡RŽRR›RRR¤(((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt<module>s($			 	$	!	*	 			.

Copyright © 2017 || Recoded By Mr.Bumblebee