-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
ú÷Oc@@s´dZddlmZddlmZmZmZddlm	Z	m
Z
mZddlm
Z
ddlmZdefd„ƒYZd	efd
„ƒYZde
fd„ƒYZd
S(sFull history branch formats.i(tabsolute_import(tdebugterrorstrevision(tBranchtBranchFormatMetadirt	BzrBranch(tneeds_write_lock(tmutter_callsitetFullHistoryBzrBranchcB@s_eZdZed„ƒZd„Zd„Zd„Zd„Zd„Z	eddd„ƒZRS(	s4Bzr branch which contains the full revision history.cC@s’|st|tƒr2tjd|d|ƒ‚ntj|ƒ}|j|ƒ}t|ƒ|krtdt|ƒ|fƒ‚n|j	|ƒdS(Ntrevision_idtbranchs%d != %d(
t
isinstancet
basestringRtInvalidRevisionIdt
_mod_revisiontensure_nullt_lefthand_historytlentAssertionErrort_set_revision_history(tselftrevnoR
thistory((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pytset_last_revision_info*scC@s=|jƒ}t|ƒ}|r,||dfSdtjfSdS(Ni˙˙˙˙i(t_revision_historyRRt
NULL_REVISION(RtrhR((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt_read_last_revision_info7s
cC@sëdtjkrtddƒntj}x|D]}||ƒq/Wtjdre|jƒ\}}nt|ƒdkrƒtj	}n
|d}|j
t|ƒ|ƒ|j|ƒ|jƒ|j
|ƒtjdrç|j||ƒndS(Ntevilis)set_revision_history scales with history.tpost_change_branch_tipii˙˙˙˙(Rtdebug_flagsRRtcheck_not_reserved_idRthookstlast_revision_infoRRt _run_pre_change_branch_tip_hookst_write_revision_historyt_clear_cached_statet_cache_revision_historyt!_run_post_change_branch_tip_hooks(Rtrev_historyR trev_idt	old_revnot	old_revidtrevid((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR?s 	






cC@s/|jjddj|ƒd|jjƒƒdS(s•Factored out of set_revision_history.

        This performs the actual writing to disk.
        It is intended to be called by set_revision_history.srevision-historys
tmodeN(t
_transportt	put_bytestjointbzrdirt_get_file_mode(RR((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR$Ts	cC@s?|jjdƒjdƒ}|ddgkr;|jƒn|S(Nsrevision-historys
i˙˙˙˙t(R.t	get_bytestsplittpop(RR((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt_gen_revision_history]s
cC@sÓt|tƒs,tt|ƒj||ƒdS|tjkrDg}n|jƒ}|dk	rÂ|gkrÂy||j	|ƒd }WqÂt
k
rž|jj|ƒ}|j
|jƒd}qÂXn|j|ƒdS(Ni(RR	tsuperRt_synchronize_historyRRRtNonetindext
ValueErrort
repositorytget_revisiontget_historyR(RtdestinationR
tnew_historytrev((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR9ds
	
cC@s |j|j|||ƒƒdS(sƒCreate a new revision history that will finish with revision_id.

        :param revision_id: the new tip to use.
        :param last_rev: The previous last_revision. If not None, then this
            must be a ancestory of revision_id, or DivergedBranches is raised.
        :param other_branch: The other branch that DivergedBranches should
            raise with respect to.
        N(RR(RR
tlast_revtother_branch((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pytgenerate_revision_historyusN(t__name__t
__module__t__doc__RRRRR$R7R9R:RE(((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR	's
						t
BzrBranch5cB@seZdZRS(s•A format 5 branch. This supports new features over plain branches.

    It has support for a master_branch which is the data for bound branches.
    (RFRGRH(((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyRI„stBzrBranchFormat5cB@sJeZdZd„Zed„ƒZd„Zdddd„Zd„Z	RS(sBzr branch format 5.

    This format has:
     - a revision-history file.
     - a format string
     - a lock dir guarding the branch itself
     - all of this stored in a branch/ subdirectory
     - works with shared repositories.

    This format is new in bzr 0.8.
    cC@stS(N(RI(R((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
_branch_class˜scC@sdS(s%See BranchFormat.get_format_string().sBazaar-NG branch format 5
((tcls((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pytget_format_string›scC@sdS(s*See BranchFormat.get_format_description().sBranch format 5((R((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pytget_format_description scC@s=|rtj|jƒ‚nddg}|j||||ƒS(s+Create a branch of this format in a_bzrdir.srevision-historyR3sbranch-name(srevision-historyR3(sbranch-nameR3(RtUpgradeRequiredtuser_urlt_initialize_helper(Rta_bzrdirtnameR=tappend_revisions_onlyt
utf8_files((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
initialize¤s
	cC@stS(N(tFalse(R((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
supports_tagsŽsN(
RFRGRHRKtclassmethodRMRNR:RVRX(((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyRJ‹s			N(RHt
__future__RtbzrlibRRRRt
bzrlib.branchRRRtbzrlib.decoratorsRtbzrlib.traceRR	RIRJ(((s@/usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt<module>s]

Copyright © 2017 || Recoded By Mr.Bumblebee