�
�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( RRR
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(RRR((s$/sys/lib/python/mercurial/filelog.pytrenamed*scCsI|i|�}|i|�ot|i|��Sntii||�S(s#return the size of a given revision(RR)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(RRRtt2((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
|