-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
¿ÉOc@@stdZddlmZddlmZmZddlmZddl	m
Z
d„Zeeddeed„ZdS(	s@Remove the last revision from the history of the current branch.i(tabsolute_import(terrorstrevision(tBranch(tBoundBranchOutOfDatec
C@sˆ|jjƒ}|j||ƒ}g}xZ|jƒD]L\}}||krRq4nx+|D]#}	|jj|	ƒ|j|	ƒqYWq4W|S(sRemove tags on revisions between old_tip and new_tip.

    :param branch: Branch to remove tags from
    :param graph: Graph object for branch repository
    :param old_tip: Old branch tip
    :param parents: New parents
    :return: Names of the removed tags
    (ttagstget_reverse_tag_dicttfind_unique_ancestorst	iteritemst
delete_tagtappend(
tbranchtgraphtold_tiptparentstreverse_tagst	ancestorstremoved_tagstrevidRttag((s3/usr/lib/python2.7/dist-packages/bzrlib/uncommit.pytremove_tagss	
cC@s6g}z|dk	r/|jƒ|j|ƒn|jƒ|j|ƒg}|dk	rk|jƒd}n|r›d}	|jƒdkrÍtjƒ‚qÍn2|jƒ}	|	dk	rÍ|	jƒ|j|	ƒn|jƒ\}
}|	dk	r||	j	ƒkrt
||	ƒ‚n|dkr$|
}n|d}|
}
|}|jjƒ}x™|j
|ƒD]}|
|kru|}Pn|rd|
|fGHn|
d8}
|j|gƒj|dƒ}|sÁqYn|jt|dƒƒqYWtj}|s|	dk	r
|	j||ƒn|j||ƒ|	dkr5d}|}n|}|	}xLtjdD]=}|}|tjkrsd}n||||
|||ƒqOWtj|ƒs«|g}ng}|dk	rà|jt|ƒƒ|j|ƒn|jƒr|rt||||ƒqnWdxt|ƒD]}|jƒqWXdS(sÔRemove the last revision from the supplied branch.

    :param dry_run: Don't actually change anything
    :param verbose: Print each step as you do it
    :param revno: Remove back to this revision
    :param local: If this branch is bound, only remove the revisions from the
        local branch. If this branch is not bound, it is an error to pass
        local=True.
    :param keep_tags: Whether to keep tags pointing at the removed revisions
        around.
    isRemoving revno %d: %st
post_uncommitN(tNonet
lock_writeR
tget_parent_idstget_bound_locationRtLocalRequiresBoundBranchtget_master_branchtlast_revision_infot
last_revisionRt
repositoryt	get_graphtiter_lefthand_ancestrytget_parent_maptgettextendtreversedt
_mod_revisiont
NULL_REVISIONtset_last_revision_infoRthookstis_nulltset_parent_idst
supports_tagsRtunlock(Rtdry_runtverbosetrevnottreetlocalt	keep_tagst
unlockabletpending_mergestmastert	old_revnoR
t	new_revnot	cur_revnotnew_revision_idRtrev_idRt
hook_localthook_masterthookthook_new_tiptitem((s3/usr/lib/python2.7/dist-packages/bzrlib/uncommit.pytuncommit4s€




	

			N(t__doc__t
__future__RtbzrlibRRR%t
bzrlib.branchRt
bzrlib.errorsRRtFalseRR@(((s3/usr/lib/python2.7/dist-packages/bzrlib/uncommit.pyt<module>s	

Copyright © 2017 || Recoded By Mr.Bumblebee