-=[ Mr. Bumblebee ]=-
_Indonesia_

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

σ
ψΩOc@@sdZddlmZddlZddlmZmZmZmZm	Z
mZmZddl
mZddlmZddlmZddlmZdd	lmZdd
lmZmZdefd„ƒYZd
efd„ƒYZdefd„ƒYZdS(s)WorkingTree3 format and implementation.

i(tabsolute_importN(tbzrdirterrorst	hashcachet	inventorytrevisionttracet	transform(tneeds_read_lock(t
LockableFiles(tLockDir(tMutableTree(tLocalTransport(tInventoryWorkingTreetWorkingTreeFormatMetaDirtPreDirStateWorkingTreecB@s2eZdd„Zd„Zeddd„ƒZRS(t.cO@s‘tt|ƒj|||Ž|jjdƒ}|jdƒ}tj|||jj	ƒ|j
ƒƒ|_|j}|jƒ|j
rtjdƒ|jƒndS(Ns
stat-cacheswrite hc(tsuperRt__init__Rtget_workingtree_transporttNonet
local_abspathRt	HashCachet_get_file_modet_content_filter_stack_providert
_hashcachetreadtneeds_writeRtmuttertwrite(tselftbasedirtargstkwargstwt_transtcache_filenamethc((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyR1s	
	
cC@sw|jjrsy|jjƒWqstk
ro}|jtjtjfkrP‚ntjd|jj	ƒ|ƒqsXndS(s'Write out the hashcache if it is dirty.s*Could not write hashcache for %s
Error: %sN(
RRRtOSErrorterrnotEPERMtEACCESRRtcache_file_name(Rte((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt_write_hashcache_if_dirtyGs	cC@s.|s|jj|ƒ}n|jj||ƒS(N(t
_inventorytid2pathRtget_sha1(Rtfile_idtpatht
stat_value((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt
get_file_sha1UsN(t__name__t
__module__RR+RRR2(((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyR/s	tWorkingTree3cB@s8eZdZed„ƒZd„Zd„Zd„ZRS(sΑThis is the Format 3 working tree.

    This differs from the base WorkingTree by:
     - having its own file lock
     - having its own last-revision property.

    This is new in bzr 0.8
    cC@s3y|jjdƒSWntjk
r.tjSXdS(sSee Mutable.last_revision.s
last-revisionN(t
_transportt	get_bytesRt
NoSuchFilet
_mod_revisiont
NULL_REVISION(R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt_last_revisionfscC@st|dks|tjkrJy|jjdƒWntjk
rEnXtS|jjd|d|j	j
ƒƒtSdS(s&See WorkingTree._change_last_revision.s
last-revisiontmodeN(RR9R:R6tdeleteRR8tFalset	put_bytesRRtTrue(Rtrevision_id((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt_change_last_revisionnscC@sd|jƒfgS(s=Return the references needed to perform a check of this tree.ttrees(t
last_revision(R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt_get_check_refs{scC@se|jjdkr?|jƒ|jr2|jƒn|jƒnz|jjƒSWd|jjƒXdS(Ni(t_control_filest_lock_countt_cleanupt_inventory_is_modifiedtflushR+tunlocktbranch(R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyRKs
	

(R3R4t__doc__RR;RBRERK(((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyR5\s
	
	tWorkingTreeFormat3cB@seZdZeZeZeZed„ƒZd„Z	e
Zd„Ze
eƒZd„Zd	d	d	ed„Zd„Zed„Zd„ZRS(
s„The second working tree format updated to record a format marker.

    This format:
        - exists within a metadir controlling .bzr
        - includes an explicit version marker for the workingtree control
          files, separate from the ControlDir format
        - modifies the hash cache format
        - is new in bzr 0.8
        - uses a LockDir to guard access for writes.
    cC@sdS(s*See WorkingTreeFormat.get_format_string().sBazaar-NG Working Tree format 3((tcls((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pytget_format_string scC@sdS(s/See WorkingTreeFormat.get_format_description().sWorking tree format 3((R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pytget_format_description₯scC@s
tjƒS(N(RtBzrDirMetaFormat1(R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt__get_matchingbzrdir«scC@s|jdƒ}t|dtƒS(Ntlock(RRR	R
(Rta_bzrdirt	transport((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt_open_control_files°sc
C@sΣt|jtƒs*tj|jjƒ‚n|j|ƒ}|j|ƒ}|jƒ|j	ƒ|j
d|jƒd|jƒƒ|d	k	r“|}n|jƒ}|d	krΓtj|jƒƒ}n|jƒ}	|j|jjdƒ||	dtd|d|d|ƒ}
|
jƒz₯|jj|ƒ}|jƒd	k	rO|
j|jƒƒn|tjkrn|
jgƒn|
j||fgƒtj||
ƒxt j!dD]}||
ƒq’WWd	|j"ƒ|
j"ƒX|
S(
sSee WorkingTreeFormat.initialize().

        :param revision_id: if supplied, create a working tree at a different
            revision than the branch is at.
        :param accelerator_tree: A tree which can be used for retrieving file
            contents more quickly than the revision tree, i.e. a workingtree.
            The revision tree will be used for cases where accelerator_tree's
            content is different.
        :param hardlink: If true, hard-link files from accelerator_tree,
            where possible.
        tformatR<Rt	_internalt_formatt_bzrdirRFtpost_build_treeN(#t
isinstanceRVRRtNotLocalUrltbaseRRWtcreate_lockt
lock_writeR?t	as_stringRRtopen_branchR9tensure_nullRDt_initial_inventoryt_tree_classtroot_transportRR@tlock_tree_writet
repositoryt
revision_treetget_root_idtset_root_idR:tset_parent_treesRt
build_treeRthooksRK(
RRURAtfrom_branchtaccelerator_treethardlinkRVt
control_filesRLtinvtwtt
basis_treethook((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt
initialize΄sF



		

cC@s
tjƒS(N(Rt	Inventory(R((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyReπscC@sX|st‚nt|jtƒs9tj|jjƒ‚n|j||j|ƒƒ}|S(sΉReturn the WorkingTree object for a_bzrdir

        _found is a private parameter, do not use it. It is used to indicate
               if format probing has already been done.
        (	tNotImplementedErrorR]RVRRR^R_t_openRW(RRUt_foundRu((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pytopenσs	c
C@s1|j|jjdƒdtd|d|d|ƒS(sŒOpen the tree itself.

        :param a_bzrdir: the dir for the tree.
        :param control_files: the control files for the tree.
        RRYRZR[RF(RfRgRR@(RRURs((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyR{s
N(R3R4RMR@tupgrade_recommendedtmissing_parent_conflictstsupports_versioned_directoriestclassmethodRPRQR5Rft'_WorkingTreeFormat3__get_matchingbzrdirtpropertyt_matchingbzrdirRWRR>RxReR}R{(((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyRNŽs
			;	(RMt
__future__RR&tbzrlibRRRRRR9RRtbzrlib.decoratorsRtbzrlib.lockable_filesR	tbzrlib.lockdirR
tbzrlib.mutabletreeRtbzrlib.transport.localRtbzrlib.workingtreeR
RRR5RN(((s8/usr/lib/python2.7/dist-packages/bzrlib/workingtree_3.pyt<module>s4	-2

Copyright © 2017 || Recoded By Mr.Bumblebee