-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyc


}UBOc@@sdZddlmZddlmZddlmZmZmZdej	fdYZ
de
ejfdYZd	ej
fd
YZej
jedS(sNRevisionTree - a Tree implementation backed by repository data for a revision.i(tabsolute_import(tStringIO(terrorstrevisionttreetRevisionTreecB@seZdZdZdZdZdZdZddZ	ddZ
ddZd	Zd
Z
dZdZd
ZRS(s[Tree viewing a previous revision.

    File text can be retrieved from the text store.
    cC@s||_||_d|_dS(N(t_repositoryt_revision_idtNonet_rules_searcher(tselft
repositorytrevision_id((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt__init__$s		cC@s
|jjjS(s%See `Tree.has_versioned_directories`.(Rt_formattsupports_versioned_directories(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pythas_versioned_directories)scC@st|jjdtS(Ntsupports_tree_reference(tgetattrRRtFalse(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR-scC@s=|jdtjfkr!g}n|jj|jj}|S(s]See Tree.get_parent_ids.

        A RevisionTree's parents match the revision graph.
        N(RRRt
NULL_REVISIONRtget_revisiont
parent_ids(R
R((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_parent_ids1s
		cC@s|jS(s1Return the revision id associated with this tree.(R(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_revision_id=scC@st|jdS(s8Return the revision id in which a file was last changed.N(tNotImplementedErrortget_file_revision(R
tfile_idtpath((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyRAscC@s<x5|j|dfgD]\}}dj|}qW|S(Nt(titer_files_bytesRtjoin(R
RRt
identifiertcontenttret((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
get_file_textEs%cC@st|j|S(N(RR#(R
RR((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_fileJscC@s
|jjS(N(Rt	is_locked(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR%MscC@s|jj|S(N(Rt	lock_read(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR&Ps
cC@s d|jjt||jfS(Ns<%s instance at %x, rev_id=%r>(t	__class__t__name__tidR(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt__repr__TscC@s|jjdS(N(Rtunlock(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR+XscC@s4|jdkr-tt|j||_n|jS(sSee Tree._get_rules_searcher.N(R	RtsuperRt_get_rules_searcher(R
tdefault_searcher((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR-[sN(R(t
__module__t__doc__R
RRRRRRR#R$R%R&R*R+R-(((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyRs									tInventoryRevisionTreecB@seZdZddZdZdddZddZddZdZ	e
dedZddZ
dd	Zd
ZdZdZd
ZdZddZdZejdZdZdZdZRS(cC@s tj|||||_dS(N(RR
t
_inventory(R
RtinvR((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR
escC@sn|j|\}}||}y|jj|j}Wn,tjk
rftj|j|nX|jS(N(	t_unpack_file_idRRRRtNoSuchRevisiontFileTimestampUnavailabletid2patht	timestamp(R
RRR3tinv_file_idtieR((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_file_mtimeis
cC@s |j|\}}||jS(N(R4t	text_size(R
RR3R9((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
get_file_sizerscC@s9|j|\}}||}|jdkr5|jSdS(Ntfile(R4tkindt	text_sha1R(R
RRt
stat_valueR3R9R:((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
get_file_sha1vs

cC@s&|j|\}}||}|jS(N(R4R(R
RRR3R9R:((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR}s
cC@s9|j|\}}||}|jdkr2tS|jS(NR>(R4R?Rt
executable(R
RRR3R9R:((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
is_executables

cC@st|j|S(N(tbooltpath2id(R
tfilename((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pythas_filenamesc	c@s|dkrd}|j}n%|j|\}}|dkrCdS|jd|d|}|jdk	r|r|dkr|jnx.|D]&\}}|d|j|j|fVqWdS(Ntfrom_dirt	recursivetV(Rtroot_inventoryt_path2inv_file_idtiter_entriestroottnextR?R(	R
tinclude_rootRIRJtfrom_dir_idR3tentriesRtentry((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
list_filess"
cC@s&|j|\}}||}|jS(N(R4tsymlink_target(R
RRR3R9R:((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_symlink_targets
cC@s |j|\}}||jS(N(R4treference_revision(R
RRR3R9((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_reference_revisionscC@s|jjr|jjjSdS(N(RLROR(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytget_root_idscC@s |j|\}}||jS(N(R4R?(R
RR3R9((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR?scC@s|j|\}}|dkr%dS||}|j}|dkr]||j|j|jfS|dkr||dd|jfS|dddfSdS(sSee Tree.path_content_summary.tmissingR>tsymlinkN(R[NNN(RMRR?R<RCR@RV(R
RR3RRTR?((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytpath_content_summarys
	cC@s,|dkrdtdfS|j|jdfS(N(RRR?RC(R
RTR((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt_comparison_datas
cC@s|jS(N(R<(R
RTRA((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
_file_sizesRcc@s;d}|j|\}}|dkr0g}n|d|d|dfg}x|r6g}|j}|dr|dd}nd}||d}	xL|	jD]>\}
}||
}|j||
|jd|j|jfqW|d|	jf|fVx4t|D]&}
|
d|kr	|j|
q	q	WqNWdS(Nt	directoryRit/ii(RMRtpoptsorted_childrentappendR?Rtreversed(R
tprefixt
_directoryR3ttop_idtpendingtdirblockt
currentdirtrelrootRTtnametchildttoppathtdir((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pytwalkdirss(		

cc@sg|D]$\}}||j||f^q}y&x|jj|D]}|VqGWWn(tjk
r}tj|jnXdS(seSee Tree.iter_files_bytes.

        This version is implemented on top of Repository.iter_files_bytesN(RRRRtRevisionNotPresentt
NoSuchFileR(R
t
desired_filestftitrepo_desired_filestresultte((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyRs.
cC@s]||j|f}|jjj}|j|}g|D]\}}|d|f^q=S(sSee Tree.annotate_iteri(RRttextst
get_annotatort
annotate_flat(R
Rtdefault_revisionttext_keyt	annotatortannotationstkeytline((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
annotate_iterscC@s3||krtSt|tr/|j|jkStS(N(tTruet
isinstanceR1RLR(R
tother((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt__eq__s
cC@s||kS(N((R
R((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt__ne__scC@stddS(Nsnot hashable(t
ValueError(R
((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt__hash__sN(R(R/R
RR;R=RBRRDRHRRRURWRYRZR?R]R^R_RqRRtCURRENT_REVISIONRRRR(((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyR1cs*										
		tInterCHKRevisionTreecB@s8eZdZedZeddgeedZRS(s;Fast path optimiser for RevisionTrees with CHK inventories.cC@sUt|trQt|trQy|jj|jjtSWqQtk
rMqQXntS(N(RRRLtid_to_entryRtAttributeErrorR(tsourcettarget((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt
is_compatibles


c
c@s|jg}|r"|j|nt}i}	|gkrFg}
n|jj||d|}
t}x|jjj|jjD]p}|
dk	r|d}
|
|
kr||	|d<qn|dd}|j|n|V|j|dqW|
dk	r1x(|j	||d|	D]}|VqWn|rt|}x|jjj
D]\}}|
dk	r|j|
krqVn|j|krV|j||ftt
t
f|j|jf|j|jf|j|jf|j|jffVqVqVWndS(Ntrequire_versionediiitdiscarded_changes(RtextendtsetRt	paths2idsRLtiter_changesRtaddt_handle_precise_idsRNRRRt	parent_idRmR?RC(R
tinclude_unchangedtspecific_filestpbtextra_treesRtwant_unversionedtlookup_treestprecise_file_idsRtspecific_file_idstchanged_file_idsRxRt
new_parent_idtrelpathRT((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyRsP			
		N(	R(R/R0tstaticmethodRRRRR(((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyRs

	N(R0t
__future__Rt	cStringIORtbzrlibRRRtTreeRt
InventoryTreeR1t	InterTreeRtregister_optimiser(((s7/usr/lib/python2.7/dist-packages/bzrlib/revisiontree.pyt<module>sEK

Copyright © 2017 || Recoded By Mr.Bumblebee