-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@sddlmZddlZddlZddlZddlZddlZddlZddlZd„Z	de
fd„ƒYZeƒZe
d„Zd„Zddded„Zed	„Zed
„Zd„Zd„Zd
„Zd„Zd„ZejZejZejZdS(iÿÿÿÿ(t_NcCsbg|jdƒD]}|d^q}|r^|ddkrI|jƒq^|dd |d<n|S(s0like str.splitlines, but only split on newlines.s
iÿÿÿÿ(tsplittpop(ttexttltlines((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt
splitnewliness&
tdiffoptscBsxeZdZi
dd6ed6ed6ed6ed6ed6ed6ed	6ed
6ed6ZejƒZd„Zd
„ZRS(s´context is the number of context lines
    text treats all files as text
    showfunc enables diff -p output
    git enables the git extended patch format
    nodates removes dates from diff headers
    ignorews ignores all whitespace changes in the diff
    ignorewsamount ignores changes in the amount of whitespace
    ignoreblanklines ignores changes whose lines are all blank
    upgrade generates git diffs to avoid data loss
    itcontextRtshowfunctgittnodatestnobinarytignorewstignorewsamounttignoreblanklinestupgradecKs™xL|jD]A}|j|ƒ}|dkr;|j|}nt|||ƒq
Wyt|jƒ|_Wn-tk
r”tj	t
dƒ|jƒ‚nXdS(Ns3diff context lines count must be an integer, not %r(t	__slots__tgettNonetdefaultstsetattrtintRt
ValueErrortutiltAbortR(tselftoptstktv((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt__init__1s
cs6t‡fd†ˆjDƒƒ}|j|ƒt|S(Nc3s$|]}|tˆ|ƒfVqdS(N(tgetattr(t.0R(R(s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pys	<genexpr>?s(tdictRtupdateR(RtkwargsR((Rs3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytcopy>s
(	t__name__t
__module__t__doc__tFalseRtkeysRRR$(((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyRs

	
cCsp|jrtj|dƒ}n|jr<tj|dƒ}n|rl|jrltjdd|ƒjdƒ}n|S(Niis
+s
(R
tbdifftfixwsRRtretsubtstrip(RRtblank((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytwscleanEs		!c
csÎg|D]!}t||ƒr"dp%d^q}g|D]!}t||ƒrPdpSd^q5}dt|ƒ}}dt|ƒ}}	xE||ks||	krÉ||d}
}}|
|ksé||
dksé||	ksé||dkrLd}x*|
|kr||
dkr|
d7}
qòWxt||	krH||dkrH|d7}qWnGxD|
|kr’||
dkr’||dkr’|
d7}
|d7}qOW||||
||||g|fV|
}|}q…WdS(Niit=t~(R0tlen(
tbase1tlines1tbase2tlines2RRts1te1ts2te2ti1ti2tbtype((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt
splitblockNs&../
'c
cs¾|d	krt}n|js'|jrNt||tƒ}t||tƒ}ntj||ƒ}xWt|ƒD]I\}}|dkr–||d}	nddddg}	|	d|d|	d|dg}	|	d|	dksò|	d|	dkr«d}
|j	r|d	krt
|ƒ}n|d	kr7t
|ƒ}nt|dj||	d|	d!ƒƒ}t|dj||	d|	d!ƒƒ}||krd}
qn|	|
fVn|dfVqmWd	S(
s·Return (block, type) tuples, where block is an mdiff.blocks
    line entry. type is '=' for blocks matching exactly one another
    (bdiff blocks), '!' for non-matching blocks and '~' for blocks
    matching only after having filtered blank lines. If refine is True,
    then '~' blocks are refined and are only made of blank lines.
    line1 and line2 are text1 and text2 split with splitnewlines() if
    they are already available.
    iiiit!tR2R1N(RtdefaultoptsR
RR0R(R*tblockst	enumerateRRtjoin(
ttext1ttext2RR5R7trefinetdifftiR8tsttypetoldtnew((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt	allblockshs0		"(	''csçd‡fd†}|r$|r$dStjdƒ}tj|ƒ}tj|ƒ}ˆjr½tj|ƒsytj|ƒr½|r­|r­t|ƒt|ƒkr­||kr­dSd|g}	nÙ|set|ƒ}|dkrîd||ƒ}
ndd||||ƒf}
dd	||||ƒf}d
t|ƒ}|
||gg|D]}
d|
^qK}	n1|s
t|ƒ}dd||||ƒf}
|dkr³d||ƒ}ndd	||||ƒf}d
t|ƒ}|
||gg|D]}
d|
^qó}	n‰t|ƒ}t|ƒ}tt	||||dˆƒƒ}	|	sPdS|	j
dd||||ƒfƒ|	j
dd||||ƒfƒxAtt|	ƒƒD]-}|	|ddkr©|	|cd7<q©q©Wdj|	ƒS(Ncs6ˆjrˆjrd|S|r2d|kr2dSdS(Ns	%s
t s	
s
(R
R(tdatetfn(R(s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytdatetag“s
RAisBinary file %s has changed
s--- /dev/null%ss--- %s%ssa/s+++ %s%ssb/s@@ -0,0 +1,%d @@
t+s+++ /dev/null%ss@@ -1,%d +0,0 @@
t-Rs
--- a/%s%sis
+++ b/%s%siÿÿÿÿs
s
\ No newline at end of file
(ii(
RRtdatestrtpconvertRtbinaryR3Rtlistt_unidifftinserttxrangeRE(tatadtbtbdtfn1tfn2RRStepochRtl1tl2tl3tetaltbltln((Rs3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytunidiff’sJ(0--!##c#sP‡fd†‰‡fd†}ddg‰‡‡‡‡fd†}d}d}xÖt||ˆˆ|ƒD]¼\}	}
|	\}}}
}|
dkr¼|
dkrg|||
||7}qgqgng}ˆ||!}||
|!}|
|8}
||8}||ƒ}||
ƒ}d}|rk||dˆjdkrL|}|d}|d	}qkx||ƒD]}|VqYWn|r’||d<||d	<|d
}n|||||g}gˆ||!D]}d|^qµ|t|ƒ)g|D]}d|^qÜ|t|ƒ)g|D]}d
|^q|t|ƒ)qgW|rLx||ƒD]}|Vq:WndS(Ncs&|ˆj}||kr"|}n|S(N(R(RR3tret(R(s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt
contextendËs
	cs!|ˆj}|dkrdS|S(Ni(R(RRl(R(s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytcontextstartÑs
iRAc
3sL|\}}}}}ˆ|tˆƒƒ}||}||||}d}	ˆjr͈\}
}	x\t|d|
ddƒD]@}ˆ|djƒr|dˆ|jƒd }	|	ˆd<Pq|q|W|ˆd<n|rà|d7}n|ró|d7}nd|||||	fVx|D]}|VqWx$t||ƒD]}dˆ|Vq1WdS(NRAiiÿÿÿÿiRPi(s@@ -%d,%d +%d,%d @@%s
(R3R	R\tisalnumtrstrip(
thunktastartta2tbstarttb2tdeltataendtalentblentfunctlastposRJtx(RmRdtlastfuncR(s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt	yieldhunkØs.
	!



	
	R@R2iiiRPRURT(RRORR3(tt1tt2RdReRRnR~RqtignoredlinesRKtstypeta1Rstb1RuRvRMRNRrRttprevR|((RmRdR}Rs3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyRZÊsL'%








.'+cCsÆd„}dd„}|dkr*d}n|dkr?d}n||krOdSg}|jdƒ|jdt|ƒƒx0|tj|ƒƒD]}|j||ƒƒqW|jdƒdj|ƒS(	s print base85-encoded binary diffcSsmt|ƒ}|dkr5ttdƒ|dƒ}nt|dtdƒdƒ}d|tj|tƒfS(NitAiR]s%c%s
(R3tchrtordtbase85t	b85encodetTrue(tlineR((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytfmtline0s
i4cssCt|ƒ}d}x*||kr>||||!V||7}qWdS(Ni(R3(RtcsizeRRJ((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytchunk8s
RAsGIT binary patch
sliteral %s
s
N(RtappendR3tzlibtcompressRE(ttottnRRRlR((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytb85diff.s			

cCs„d}g}xh|t|ƒkrvtjd|||d!ƒ\}}}|d7}|j||||!ƒ||7}qWdj|ƒS(Nis>llliRA(R3tstructtunpackRRE(tbintpostttp1tp2R((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt	patchtextQs&
cCs5t|ƒdkr"tj|dƒStj||gƒS(Nii(R3Rtbuffertmpatchtpatches(R]R˜((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytpatch[scCs@gtj||ƒD])}|d|d|d|df^qS(Niii(R*RC(R]R_td((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pytget_matching_blocksbscCstjddd|ƒS(Ns>llli(R–tpack(tlength((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyttrivialdiffheaderes(ti18nRR*RŸRR‰R,R–R‘RtobjectRRBR‹R0R?RR(RORkRZR•RR¡R£R¦R tpatchedsizettextdiff(((s3/usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt<module>s$0$	
-			*8d	#	
					

Copyright © 2017 || Recoded By Mr.Bumblebee