-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@sÉddlmZmZmZddlmZddlZddlZddlZddl	Z	idd6Z
d„Zd„Zd„Z
d	„Zd
efd„ƒYZd„Zd
ejfd„ƒYZdS(iÿÿÿÿ(tbinthextnullid(t_NtdefaulttbranchcCs:|jddƒjddƒjddƒ}|jddƒS(	s
    >>> d = {'nl': chr(10), 'bs': chr(92), 'cr': chr(13), 'nul': chr(0)}
    >>> s = "ab%(nl)scd%(bs)s%(bs)sn%(nul)sab%(cr)scd%(bs)s%(nl)s" % d
    >>> s
    'ab\ncd\\\\n\x00ab\rcd\\\n'
    >>> res = _string_escape(s)
    >>> s == res.decode('string_escape')
    True
    s\s\\s
s\ns
s\rts\0(treplace(ttext((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt_string_escapes*cCs£tjƒ}x|jdƒD]}|rd|krm|jddƒ}|jddƒ}|jddƒ}n|jdƒjdd	ƒ\}}|||<qqW|S(
s¡
    >>> sorted(decodeextra(encodeextra({'foo': 'bar', 'baz': chr(0) + '2'})
    ...                    ).iteritems())
    [('baz', '\x002'), ('branch', 'default'), ('foo', 'bar')]
    >>> sorted(decodeextra(encodeextra({'foo': 'bar',
    ...                                 'baz': chr(92) + chr(0) + '2'})
    ...                    ).iteritems())
    [('baz', '\\\x002'), ('branch', 'default'), ('foo', 'bar')]
    Rs\0s\\s\\
s
tt
string_escapet:i(t
_defaultextratcopytsplitRtdecode(Rtextratltktv((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytdecodeextras
!cCs@gt|ƒD] }td|||fƒ^q
}dj|ƒS(Ns%s:%sR(tsortedR	tjoin(tdRtitems((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytencodeextra2s3cCs5djg|jƒD]}|jƒ^qƒjdƒS(s>strip trailing whitespace and leading and trailing empty liness
(Rt
splitlinestrstriptstrip(tdescR((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt	stripdesc7stappendercBs\eZdZd„Zd„Zd„Zd„Zd„Zdd„Zdd	„Z	d
„Z
RS(s`the changelog index must be updated last on disk, so we use this class
    to delay writes to itcCsI||_|||ƒ}||_|jƒ|_|j|ƒj|_dS(N(tdatatfpttelltoffsettfstattst_sizetsize(tselftvfstnametmodetbufR"((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt__init__>s
		cCs|jtdj|jƒƒS(NR
(R'tlenRR!(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytendEscCs|jS(N(R$(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR#GscCsdS(N((R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytflushIscCs|jjƒdS(N(R"tclose(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR1KsicCs„|dkr||_n@|dkr6|j|7_n"|dkrX|jƒ||_n|j|jkr€|jj|jƒndS(s,virtual file offset spans real file and dataiiiN(R$R/R'R"tseek(R(R$twhence((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR2NsiÿÿÿÿcCsêd}|j|jkrg|jj|ƒ}|}|jt|ƒ7_|dkrg|t|ƒ8}qgn|dkræ|j|j}|jjddj|jƒƒ|jd3|jd|||!}|jt|ƒ7_||7}n|S(s5only trick here is reads that span real file and dataR
ii(R$R'R"treadR.R!tinsertR(R(tcounttrettstdoff((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR4Ys

cCs/|jjt|ƒƒ|jt|ƒ7_dS(N(R!tappendtstrR$R.(R(R8((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytwriteks(t__name__t
__module__t__doc__R-R/R#R0R1R2R4R<(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR ;s					csd‡‡‡‡fd†}|S(NtrcsO|ˆkrˆ||ƒSˆr<ˆ|d|jddƒƒStˆ||ˆƒS(Ns.atatw(RR (R*R+(R,tdiverttopenerttarget(s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytops

((RDRERCR,RF((R,RCRDREs7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytdelayopenerost	changelogcBsÝeZd„Zd„Zd„Zddd„Zejd„ƒZ	d„Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zdd„Zd„Zddd„Zd„ZRS(cCsrtjj||dƒ|jr>|jtjM_t|_n||_t|_g|_	t|_
tƒ|_dS(Ns
00changelog.i(
trevlogR-t
_initemptytversiontREVLOGGENERALDELTAtFalset
_generaldeltat_realopenert_delayedt	_delaybuft_divertt	frozensettfilteredrevs(R(RD((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR-zs					cCsGx@tt|ƒdddƒD]"}||jkr|j|ƒSqWdS(sfiltered version of revlog.tipiiþÿÿÿiÿÿÿÿN(txrangeR.RTtnode(R(ti((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyttip†s#cs;tˆjƒdkr%tjjˆƒS‡fd†}|ƒS(s#filtered version of revlog.__iter__ic3s8x1ttˆƒƒD]}|ˆjkr|VqqWdS(N(RUR.RT(RW(R((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytfilterediter‘s(R.RTRIt__iter__(R(RY((R(s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRZŒsiccsAx:tt|ƒj||ƒD]}||jkr|VqqWdS(sfiltered version of revlog.revsN(tsuperRHtrevsRT(R(tstarttstopRW((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR\˜s"cCs|j|jdƒƒ|jS(Ni(trevRVt
_nodecache(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytnodemapžscCs9y |j|ƒ}||jkSWntk
r4tSXdS(s"filtered version of revlog.hasnodeN(R_RTtKeyErrorRM(R(RVRW((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pythasnode¤s

cCs&|jr|jƒStt|ƒjƒS(N(RTt	_headrevsR[RHtheadrevs(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRe¬s	
cOs-|jst‚tt|ƒj||ŽdS(N(RTtAssertionErrorR[RHR(R(targstkwargs((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR²scCsRtt|ƒj|ƒ}||jkrNtjt|ƒ|jtdƒƒ‚n|S(sfiltered version of revlog.revsno node(	R[RHR_RTterrortLookupErrorRt	indexfileR(R(RVR@((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR_¸s'cCs4||jkrt|ƒ‚ntt|ƒj|ƒS(sfiltered version of revlog.node(RTt
IndexErrorR[RHRV(R(R_((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRV¿scCs4||jkrt|ƒ‚ntt|ƒj|ƒS(s"filtered version of revlog.linkrev(RTRlR[RHtlinkrev(R(R_((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRmÅscCs4||jkrt|ƒ‚ntt|ƒj|ƒS(s%filtered version of revlog.parentrevs(RTRlR[RHt
parentrevs(R(R_((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRnËscCs4||jkrt|ƒ‚ntt|ƒj|ƒS(s filtered version of revlog.flags(RTRlR[RHtflags(R(R_((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRoÑscCsOt|_t|ƒdk|_g|_t|j|j|j|jƒ|_dS(s2delay visibility of index updates to other readersiN(	tTrueRPR.RRRQRGRORkRD(R(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytdelayupdate×s
		cCs¾t|_|j|_|jr`|jd}|jj|ƒ}|jƒ|jj||jƒnM|j	r­|j|jdƒ}|j
dj|j	ƒƒ|jƒg|_	n|j|ƒdS(sfinalize index updatess.aRAR
N(
RMRPRORDRRRktopenR1trenameRQR<Rtcheckinlinesize(R(ttrttmpnametnfileR"((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytfinalizeßs		

	
cCsItj|j|ƒ}|j|_|j|_|j|_|j|_dS(N(RIRDtindexRaR`t_chunkcache(R(tfileR@((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytreadpendingñs
cCs|jr|j|jƒ}|j|jddƒ}|j|jƒƒ|jdj|jƒƒ|jƒg|_t|_n|jrŒtSt	S(sDcreate a file containing the unfinalized state for pretxnchangegroups.aRBR
(
RQRORkR<R4RR1RpRRRM(R(tfp1tfp2((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytwritependingøs	
		cCs&|js"tjj|||ƒndS(N(RPRIRt(R(RuR"((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRts	c
CsM|j|ƒ}|s+tdd	gdtfS|jdƒ}tj||dƒ}|| jdƒ}t|dƒ}tj|dƒ}|djddƒ}t|ƒdkröt	|dƒ}	yt
|dƒ}
Wntk
rìd}
nXt}n1t	|dƒt
|dƒ}	}
t|dƒ}|d}|||	|
f|||fS(
sí
        format used:
        nodeid
        : manifest node in ascii
        user
          : user, no 
 or 
 allowed
        time tz extra
 : date (time is int or float, timezone is int)
                        : extra is metadata, encoded and separated by ''
                        : older versions ignore it
        files

       : files modified by the cset, no 
 or 
 allowed
        (.*)            : comment (free text, ideally utf-8)

        changelog v0 doesn't use extra
        R
is

is
it i(ii(
trevisionRR
RytencodingttolocalRRR.tfloattintt
ValueErrorR(
R(RVRtlastRRtmanifesttuserttdatattimettimezoneRtfiles((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyR4s(


	!
c
Cstj|ƒtj|ƒ}}|jƒ}|sItjtdƒƒ‚nd|krwtjtdƒt|ƒƒ‚nt|ƒ}|rŸdtj	|ƒ}
ndtj
ƒ}
|	r|	jdƒ}|d
krÚ|	d=q|dkrtjtdƒ|ƒ‚qn|	r*t|	ƒ}	d|
|	f}
nt
|ƒ||
gt|ƒd|g}dj|ƒ}
|j|
|t|ƒ||ƒS(Nsempty usernames
susername %s contains a newlines%d %dRRR
t.tnullRXsthe name '%s' is reserveds%s %s(sdefaultR
(RŽRstip(R‚t	fromlocalRRitRevlogErrorRtreprRtutilt	parsedatetmakedatetgetRRRRtaddrevisionR.(R(RˆRRttransactiontp1tp2R‰tdateRt
parseddateRRR((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pytadd5s0
)cCs5|j|ƒd}tj|jdƒƒd|kfS(s¢return the branch name and open/close state of a revision

        This function exists because creating a changectx object
        just to access this is costly.iRR1(R4R‚RƒR–(R(R_R((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt
branchinfoZsN(R=R>R-RXRZtNoneR\R“t
propertycacheRaRcReRR_RVRmRnRoRqRxR|RRtR4RRž(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyRHys*																'$(RVRRRti18nRR“RiRIR‚R
R	RRRtobjectR RGRH(((s7/usr/lib/python2.7/dist-packages/mercurial/changelog.pyt<module>s0
				4	

Copyright © 2017 || Recoded By Mr.Bumblebee