-=[ Mr. Bumblebee ]=-
_Indonesia_

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

๓
๒๊„Oc@@sขdZddlmZddlmZmZddljZdd„Z
ddeddejd„Z
ed„Zed	„Zd
„Zddd„Zd„ZdS(
sIDisplay what revisions are missing in 'other' from 'this' and vice versa.i(tabsolute_import(tlogtsymbol_versioningNc
c@sฮ|jtjƒ}d}|dkr-i}nxš|D]’}t|ƒdkra|\}}d}	n|\}}}	|j|ƒ}|r—|j|ƒ}
nd}
tj|||	d|
d|j	|ƒƒVq4WdS(Niitdeltattags(
t
revision_treet
_mod_revisiont
NULL_REVISIONtNonetlentget_revisiontget_revision_deltaRtLogRevisiontget(t	revisionstrevision_sourcetverbosetrev_tag_dictt	last_treetlast_rev_idtrevtrevnotrev_idtmerge_depthR((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pytiter_log_revisionss	
	tallc
C@sนtj|ƒr=tjdtddƒ|d	kr=|}q=n|d	krRt}n|jƒzK|jƒz/t||d|d|d|d|d|ƒSWd	|jƒXWd	|jƒXd	S(
sgFind revisions from each side that have not been merged.

    :param local_branch: Compare the history of local_branch
    :param remote_branch: versus the history of remote_branch, and determine
        mainline revisions which have not been merged.
    :param restrict: ('all', 'local', 'remote') If 'all', we will return the
        unique revisions from both sides. If 'local', we will return None
        for the remote revisions, similarly if 'remote' we will return None for
        the local revisions.
    :param include_merged: Show mainline revisions only if False,
        all revisions otherwise.
    :param backward: Show oldest versions first when True, newest versions
        first when False.
    :param local_revid_range: Revision-id range for filtering local_branch
        revisions (lower bound, upper bound)
    :param remote_revid_range: Revision-id range for filtering remote_branch
        revisions (lower bound, upper bound)
    :param include_merges: Deprecated historical alias for include_merged

    :return: A list of [(revno, revision_id)] for the mainline revisions on
        each side.
    sAinclude_merges was deprecated in 2.5. Use include_merged instead.t
stacklevelitrestricttinclude_mergedtbackwardtlocal_revid_rangetremote_revid_rangeN(	Rtdeprecated_passedtwarntDeprecationWarningRtFalset	lock_readt_find_unmergedtunlock(tlocal_brancht
remote_branchRRRRRtinclude_merges((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyt
find_unmerged3s&
	

c
C@sฎ|dkrdS|sgSg}|}|}xh||kr–|j|gƒ}|j|ƒ}	|	sfPn|jt|ƒ|fƒ|	d}|d8}q/W|sช|jƒn|S(sEnumerate the mainline revisions for these revisions.

    :param ancestry: A set of revisions that we care about
    :param graph: A Graph which lets us find the parents for a revision
    :param tip_revno: The revision number for the tip revision
    :param tip: The tip of mainline
    :param backward: Show oldest versions first when True, newest versions
        first when False.
    :return: [(revno, revision_id)] for all revisions in ancestry that
        are left-hand parents from tip, or None if ancestry is None.
    iiN(Rtget_parent_mapR
tappendtstrtreverse(
tancestrytgrapht	tip_revnottipRtmainlinetcurt	cur_revnot
parent_maptparents((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyt_enumerate_mainlinees$

cC@sะ|dkrdS|sgS|jƒ}g|D]3\}}}	}
||kr-d|||	|
f^q-}|s~tj|ƒ}ng}xE|D]=\}}
}}}|jdjtt|ƒƒ|
|fƒq‹W|S(s,Enumerate the revisions for the ancestry.

    :param branch: The branch we care about
    :param ancestry: A set of revisions that we care about
    :param graph: A Graph which lets us find the parents for a revision
    :param tip_revno: The revision number for the tip revision
    :param tip: The tip of the ancsetry
    :param backward: Show oldest versions first when True, newest versions
        first when False.
    :return: [(revno, revision_id)] for all revisions in ancestry that
        are parents from tip, or None if ancestry is None.
    it.N(Rtiter_merge_sorted_revisionsRtreverse_by_depthR,tjointmapR-(tbranchR/R0R1R2Rtmerge_sorted_revisionstrevidtntdtetrevlinetseqRRRtend_of_merge((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyt_enumerate_with_mergesŠs',cC@sT|dks|dkr|Sg|D]-}|j|d|d|dƒr#|^q#S(Nii(Rt
is_between(R0trevstrevid_rangeR((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyt_filter_revsญs
cC@sz|jƒ\}}|jƒ\}	}
||	krF||
krFggfS|jj|jƒ}|dkr…d}|j|
|gƒ}
nd|dkrฏd}
|j||
gƒ}n:|dkrัtd|fƒ‚n|j||
ƒ\}}
|r(t||||||ƒ}t||
||	|
|ƒ}n0t|||||ƒ}t|
||	|
|ƒ}t	|||ƒt	|||ƒfS(sSSee find_unmerged.

    The branches should already be locked before entering.
    tremotetlocalRs6param restrict not one of "all", "local", "remote": %rN(
tlast_revision_infot
repositoryt	get_graphRtfind_unique_ancestorst
ValueErrortfind_differenceRGR8RK(R'R(RRRRRtlocal_revnotlocal_revision_idtremote_revnotremote_revision_idR0tlocal_extratremote_extratlocalstremotes((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyR%ดs>
					cC@s1g|D]}|||f^q}|jƒ|S(N(tsort(Rthistory_maptr((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pytsorted_revisionsแs#
(t__doc__t
__future__RtbzrlibRRtbzrlib.revisiontrevisionRRRR#tDEPRECATED_PARAMETERR*tTrueR8RGRKR%R_(((s2/usr/lib/python2.7/dist-packages/bzrlib/missing.pyt<module>s/&"		+

Copyright © 2017 || Recoded By Mr.Bumblebee