-=[ Mr. Bumblebee ]=-
_Indonesia_

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

σ
”ΛφOc@@sΎdZddlmZddlmZmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZd	efd
„ƒYZdefd„ƒYZd
S(s!Weave-era branch implementations.i(tabsolute_import(terrorstlockable_files(tneeds_read_locktneeds_write_locktonly_raises(tLogicalLockResult(tmutter(tBranchFormattBranchWriteLockResult(tFullHistoryBzrBrancht
BzrBranch4cB@s†eZdZdd„Zd„Zeejej	ƒd„ƒZ
ed„Zd„Z
d„Zd„Zd„Zd	„Zdd
„ZRS(sBranch format 4.cC@sz|jƒs|jdƒn|jj|ƒ|jjƒy#t|j|jjd|ƒƒSWn|jjƒ‚nXdS(sΏLock the branch for write operations.

        :param token: A token to permit reacquiring a previously held and
            preserved lock.
        :return: A BranchWriteLockResult.
        twttokenN(t	is_lockedt
_note_lockt
repositoryt_warn_if_deprecatedt
lock_writeR	tunlockt
control_files(tselfR
((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyR.s
	
cC@su|jƒs|jdƒn|jj|ƒ|jjƒy|jjƒt|jƒSWn|jjƒ‚nXdS(s`Lock the branch for read operations.

        :return: A bzrlib.lock.LogicalLockResult.
        trN(RRRRt	lock_readRRR(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyRAs


cC@ss|jjdkr1|jdk	r1|jjƒnz|jjƒWd|jjƒ|jjƒsn|jƒnXdS(Ni(	Rt_lock_countt
conf_storetNonetsave_changesRRRt_clear_cached_state(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyRRs!
cC@sdddlm}ddlm}|ƒ}|rT|j|jƒ|jjj|_n|ƒ|_|S(sHReturn the most suitable metadir for a checkout of this branch.
        i(tRepositoryFormat7(tBzrDirMetaFormat1(t#bzrlib.plugins.weave_fmt.repositoryRt
bzrlib.bzrdirRtset_branch_formatt_formattbzrdirtrepository_format(RtlightweightRRtformat((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyt_get_checkout_format_s	cC@stj|jƒ‚dS(N(RtUpgradeRequiredtuser_url(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytunbindlscC@stj|jƒ‚dS(N(RR(R)(Rtother((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytbindoscC@st|jƒ‚dS(N(tNotImplementedErrortset_bound_location(Rtlocation((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyR.rscC@sdS(N(R(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytget_bound_locationuscC@sdS(N(R(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytupdatexscC@sdS(N(R(Rtpossible_transports((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytget_master_branch{sN(t__name__t
__module__t__doc__RRRRRtLockNotHeldt
LockBrokenRtFalseR'R*R,R.R0R1R3(((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyR+s	

					tBzrBranchFormat4cB@seeZdZdddd„Zd„Zd„Zd„Zdeeddd„Z	d„Z
d„ZRS(	s±Bzr branch format 4.

    This format has:
     - a revision-history file.
     - a branch-lock lock file [ to be shared with the bzrdir ]

    It does not support binding.
    c
C@s‡|rtj|jƒ‚n|d	k	r=td|fƒ‚ng|jD]}t|j|ƒ^qGs}tj||jƒ‚ndd
g}t	d||jƒ|j
|d|ƒ}tj|dtj
ƒ}|jƒy|jƒWntjk
rύt}	nXt}	z7x0|D](\}
}|j|
|d|jƒƒqWWd	|	rQ|jƒnX|j||d
tdd	ƒ}|j|||ƒ|S(sτCreate a branch of this format in a_bzrdir.

        :param a_bzrdir: The bzrdir to initialize the branch in
        :param name: Name of colocated branch to create, if any
        :param repository: Repository for this branch (unused)
        s'initialize(repository=<not None>) on %rsrevision-historytsbranch-namescreating branch %r in %stnamesbranch-locktmodeNt_foundtfound_repository(srevision-historyR;(sbranch-nameR;(RR(R)RR-t_compatible_bzrdirst
isinstanceR"tIncompatibleFormatRtget_branch_transportRt
LockableFilest
TransportLocktcreate_lockRtLockContentionR9tTruet	put_bytest_get_file_modeRtopent_run_post_branch_init_hooks(
Rta_bzrdirR<Rtappend_revisions_onlyR&t
utf8_filestbranch_transportRt
lock_takentfilenametcontenttbranch((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyt
initialize‰s>%		

		cC@sQtt|ƒjƒddlm}m}m}|ƒ|_|||g|_dS(Ni(t
BzrDirFormat4t
BzrDirFormat5t
BzrDirFormat6(	tsuperR:t__init__tbzrlib.plugins.weave_fmt.bzrdirRVRWRXt_matchingbzrdirR@(RRVRWRX((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyRZ΄s
cC@s
|jjƒS(s@The network name for this format is the control dirs disk label.(R\tget_format_string(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytnetwork_name½scC@sdS(NsBranch format 4((R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytget_format_descriptionΑsc
C@s‘|dkr|jƒ}n|dkr9tj|ƒ‚n|sHt‚n|dkrc|jƒ}ntd|d|jd|d|d|d|ƒS(	sSee BranchFormat.open().R;R"t_control_filesRMR<t_repositoryR2N(Rt_get_selected_branchRtNoColocatedBranchSupportR-topen_repositoryRR`(RRMR<R>tignore_fallbacksR?R2((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyRKΔs		cC@sdS(NsBazaar-NG branch format 4((R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyt__str__ΧscC@stS(N(R9(R((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pytsupports_leaving_lockΪsN(R4R5R6RRURZR^R_R9RKRfRg(((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyR:s*						N(R6t
__future__RtbzrlibRRtbzrlib.decoratorsRRRtbzrlib.lockRtbzrlib.traceRt
bzrlib.branchRR	tbzrlib.branchfmt.fullhistoryR
RR:(((sC/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/branch.pyt<module>sT

Copyright © 2017 || Recoded By Mr.Bumblebee