-=[ Mr. Bumblebee ]=-
_Indonesia_

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

σ
ξ:οNc@@sydZddlmZddlZddlZddlZddlmZmZm	Z	ia
iaed„Z
d„Zddddeedd„Zdddeedd„Zd	„Zed
„Zedgddƒed
gddƒeddgddƒedddgddƒedddgddƒeddgddƒeddgddƒed d!gd"d#ƒdS($sEExport trees to tarballs, non-controlled directories, zipfiles, etc.
i(tabsolute_importN(terrorstpyutilsttracecC@sS|tks|r|t|<nx-|D]%}|tks>|r&|t|<q&q&WdS(s0Register an exporter.

    :param format: This is the name of the format, such as 'tgz' or 'zip'
    :param extensions: Extensions which should be used in the case that a
                       format was not explicitly specified.
    :type extensions: List
    :param func: The function. It will be called with (tree, dest, root)
    :param override: Whether to override an object which already exists.
                     Frequently plugins will want to provide functionality
                     until it shows up in mainline, so the default is False.
    N(t
_exporterst_exporter_extensions(tformatt
extensionstfunctoverridetext((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pytregister_exporter&s


c@s&‡‡fd†}t|||ƒdS(svRegister lazy-loaded exporter function.

    When requesting a specific type of export, load the respective path.
    c	@s1tjˆˆƒ}|||||d|d|ƒS(Ntforce_mtimetfileobj(Rtget_named_object(ttreetdesttroottsubdirRR
R(tfuncnametmodule(s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pyt_loaderAsN(R(tschemeRRRR((RRs:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pytregister_lazy_exporter<sc	c@sF|d	krI|d	k	rIx.tD]#}|j|ƒrt|}PqqWn|d	krdt|ƒ}n|tkr‚tj|ƒ‚n|s—tjƒ}	nd	}	tj	d|ƒ|rρddl
m}
tj
dddƒ|
||jƒ}t}n|jƒz9x2t|||||d|	d|ƒD]}d	Vq$WWd	|jƒXd	S(
s@Returns a generator that exports the given tree.

    The generator is expected to yield None while exporting the tree while the
    actual export is written to ``fileobj``.

    :param tree: A Tree (such as RevisionTree) to export

    :param dest: The destination where the files, etc should be put

    :param format: The format (dir, zip, etc), if None, it will check the
        extension on dest, looking for a match

    :param root: The root location inside the format.  It is common practise to
        have zipfiles and tarballs extract into a subdirectory, rather than
        into the current working directory.  If root is None, the default root
        will be selected as the destination without its extension.

    :param subdir: A starting directory within the tree. None means to export
        the entire tree, and anything else should specify the relative path to
        a directory to start exporting from.

    :param filtered: If True, content filtering is applied to the exported
        files.  Deprecated in favour of passing a ContentFilterTree
        as the source.

    :param per_file_timestamps: Whether to use the timestamp stored in the tree
        rather than now(). This will do a revision lookup for every file so
        will be significantly slower.

    :param fileobj: Optional file object to use
    sexport version %ri(tContentFilterTrees8passing filtered=True to export is deprecated in bzr 2.4t
stackleveliRR
N(tNoneRtendswitht
get_root_nameRRtNoSuchExportFormatttimeRtmuttertbzrlib.filter_treeRtwarningstwarnt_content_filter_stacktFalset	lock_readtunlock(RRRRRtfilteredtper_file_timestampsR
R
RRt_((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pytget_export_generatorIs6$

	


c		C@s0x)t||||||||ƒD]}q"WdS(sώExport the given Tree to the specific destination.

    :param tree: A Tree (such as RevisionTree) to export
    :param dest: The destination where the files,etc should be put
    :param format: The format (dir, zip, etc), if None, it will check the
                   extension on dest, looking for a match
    :param root: The root location inside the format.
                 It is common practise to have zipfiles and tarballs
                 extract into a subdirectory, rather than into the
                 current working directory.
                 If root is None, the default root will be
                 selected as the destination without its
                 extension.
    :param subdir: A starting directory within the tree. None means to export
        the entire tree, and anything else should specify the relative path to
        a directory to start exporting from.
    :param filtered: If True, content filtering is applied to the
        files exported.  Deprecated in favor of passing an ContentFilterTree.
    :param per_file_timestamps: Whether to use the timestamp stored in the
        tree rather than now(). This will do a revision lookup
        for every file so will be significantly slower.
    :param fileobj: Optional file object to use
    N(R*(	RRRRRR'R(R
R)((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pytexport•scC@sU|dkrdStjj|ƒ}x,tD]$}|j|ƒr)|t|ƒ Sq)W|S(s+Get just the root name for an export.

    t-t(tostpathtbasenameRRtlen(RR
((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pyR³s
cc@s|dkrd}n|dk	r3|jdƒ}n|jƒ}|jƒxΑ|D]Ή\}}|rw|jdƒrwqPn||kr€|jdkr˜qPn|j}nB|dk	rΰ|j|dƒrP|t|ƒd}qζqPn|}|j|ƒsϋqPn|||fVqPWdS(sGIter the entries for tree suitable for exporting.

    :param tree: A tree object.
    :param subdir: None or the path of an entry to start exporting from.
    :param skip_special: Whether to skip .bzr files.
    :return: iterator over tuples with final path, tree path and inventory
        entry for each entry to export
    R-t/s.bzrt	directoryiN(	Rtrstriptiter_entries_by_dirtnextt
startswithtkindtnameR1thas_filename(RRtskip_specialtentriesR/tentryt
final_path((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pyt_export_iter_entriesΒs*		
sbzrlib.export.dir_exportertdir_exporter_generatortdirttars.tarsbzrlib.export.tar_exportertplain_tar_exporter_generatorttgzs.tar.gzs.tgzttgz_exporter_generatorttbz2s.tar.bz2s.tbz2ttbz_exporter_generatorttlzmas	.tar.lzmattar_lzma_exporter_generatorttxzs.tar.xzttar_xz_exporter_generatortzips.zipsbzrlib.export.zip_exportertzip_exporter_generator(t__doc__t
__future__RR.RR!tbzrlibRRRRRR$RRRR*R+RtTrueR?(((s:/usr/lib/python2.7/dist-packages/bzrlib/export/__init__.pyt<module>sB	
J	%


Copyright © 2017 || Recoded By Mr.Bumblebee