Plan 9 from Bell Labs’s /usr/web/sources/contrib/bichued/root/sys/lib/python/mercurial/filelog.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�
�c@s)ddkZdeifd��YZdS(i�NtfilelogcBsMeZd�Zd�Zd�Zddd�Zd�Zd�Zd�Z	RS(cCs-tii||did|df��dS(Nt/tdatas.i(trevlogt__init__tjoin(tselftopenertpath((s$/sys/lib/python/mercurial/filelog.pyRscCsE|i|�}|id�p|Sn|idd�}||dS(Ns
i(trevisiont
startswithtindex(Rtnodettts((s$/sys/lib/python/mercurial/filelog.pytreads
c	Cs�|i|�}|id�phSn|idd�}|d|!}h}x6|i�D](}|idd�\}}|||<qYW|S(Ns
is: i(R	R
Rt
splitlinestsplit(	RRR
Rtmttmtltktv((s$/sys/lib/python/mercurial/filelog.pyt	_readmetas

cCs�|p|id�oed}|o;g}|i�D]\}	}
|d|	|
fq5~}nddi|�|f}n|i|||||�S(Ns
ts%s: %s
s
%s
%s(R
t	iteritemsRtaddrevision(Rttexttmetattransactiontlinktp1tp2Rt_[1]RR((s$/sys/lib/python/mercurial/filelog.pytadd"s;cCsk|i|�dtijotSn|i|�}|o,d|jo|dti|d�fSntS(Nitcopytcopyrev(tparentsRtnullidtFalseRtbin(RRR((s$/sys/lib/python/mercurial/filelog.pytrenamed*scCsI|i|�}|i|�ot|i|��Sntii||�S(s#return the size of a given revision(RR)tlenRRtsize(RtrevR((s$/sys/lib/python/mercurial/filelog.pyR+2scCsC|i|�o|i|�}||jSntii|||�S(s'compare text with a given file revision(R)RRtcmp(RRRtt2((s$/sys/lib/python/mercurial/filelog.pyR-<sN(
t__name__t
__module__RRRtNoneR"R)R+R-(((s$/sys/lib/python/mercurial/filelog.pyR
s					
(RR(((s$/sys/lib/python/mercurial/filelog.pys<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].