-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
î:ďNc@@s@dZddlmZddlmZdefd„ƒYZdS(s—TreeBuilder helper class.

TreeBuilders are used to build trees of various shapes or properties. This
can be extremely useful in testing for instance.
i(tabsolute_import(terrorstTreeBuildercB@s;eZdZd„Zd„Zd„Zd„Zd„ZRS(sUA TreeBuilder allows the creation of specific content in one tree at a
    time.
    cC@sd|_t|_dS(sConstruct a TreeBuilder.N(tNonet_treetFalset
_root_done(tself((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pyt__init__!s	cC@sË|jƒ|js5|jjdddƒt|_nx|D]‡}|ddkri|jj|d ƒq<d}d|jdƒ|f}|jj|d
d	ƒ|jj|ƒ}|jj	||ƒq<Wd
S(sBuild recipe into the current tree.

        :param recipe: A sequence of paths. For each path, the corresponding
            path in the current tree is created and added. If the path ends in
            '/' then a directory is added, otherwise a regular file is added.
        tsroot-idt	directoryi˙˙˙˙t/s
scontents of %s%ssutf-8tfileN(
t_ensure_buildingRRtaddtTruetmkdirtencodeRtpath2idtput_file_bytes_non_atomic(Rtrecipetnametendtcontenttfile_id((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pytbuild&s
	
cC@s|jdkrtj‚ndS(s:Raise NotBuilding if there is no current tree being built.N(RRRtNotBuilding(R((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pyR
;scC@s*|jƒ|j}d|_|jƒdS(s!Finish building the current tree.N(R
RRtunlock(Rttree((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pytfinish_tree@s
		cC@s5|jdk	rtj‚n||_|jjƒdS(sŠStart building on tree.

        :param tree: A tree to start building on. It must provide the
            MutableTree interface.
        N(RRRtAlreadyBuildingtlock_tree_write(RR((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pyt
start_treeGs	(t__name__t
__module__t__doc__RRR
RR (((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pyRs				N(R#t
__future__RtbzrlibRtobjectR(((s6/usr/lib/python2.7/dist-packages/bzrlib/treebuilder.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee