-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¿ÉOc @@ st d Z d d l m Z d d l m Z m Z d d l m Z d d l m
Z
d „ Z e e d d e e d „ Z d S( s@ Remove the last revision from the history of the current branch.i ( t absolute_import( t errorst revision( t Branch( t BoundBranchOutOfDatec
C@ sˆ | j j ƒ } | j | | ƒ } g } xZ | j ƒ D]L \ } } | | k rR q4 n x+ | D]# } | j j | ƒ | j | ƒ qY Wq4 W| S( s Remove 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
( t tagst get_reverse_tag_dictt find_unique_ancestorst iteritemst
delete_tagt append(
t brancht grapht old_tipt parentst reverse_tagst ancestorst removed_tagst revidR t tag( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/uncommit.pyt remove_tags s
c C@ s6 g } z| d k r/ | j ƒ | j | ƒ n | j ƒ | j | ƒ g } | d k rk | j ƒ d } n | r› d } | j ƒ d k rÍ t j ƒ ‚ qÍ n2 | j ƒ } | d k rÍ | j ƒ | j | ƒ n | j ƒ \ }
} | d k r| | j ƒ k rt
| | ƒ ‚ n | d k r$|
} n | d } |
}
| } | j j ƒ } x™ | j
| ƒ D] } |
| k ru| } Pn | rd |
| f GHn |
d 8}
| j | g ƒ j | d ƒ } | sÁqYn | j t | d ƒ ƒ qYWt j } | s| d k r
| j | | ƒ n | j | | ƒ | d k r5d } | } n | } | } xL t j d D]= } | } | t j k rsd } n | | | |
| | | ƒ qOWt j | ƒ s«| g } n g } | d k rà| j t | ƒ ƒ | j | ƒ n | j ƒ r| rt | | | | ƒ qn Wd x t | ƒ D] } | j ƒ qWXd S( 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.
i s Removing revno %d: %st
post_uncommitN( t Nonet
lock_writeR
t get_parent_idst get_bound_locationR t LocalRequiresBoundBrancht get_master_brancht last_revision_infot
last_revisionR t
repositoryt get_grapht iter_lefthand_ancestryt get_parent_mapt gett extendt reversedt
_mod_revisiont
NULL_REVISIONt set_last_revision_infoR t hookst is_nullt set_parent_idst
supports_tagsR t unlock( R t dry_runt verboset revnot treet localt keep_tagst
unlockablet pending_mergest mastert old_revnoR
t new_revnot cur_revnot new_revision_idR t rev_idR t
hook_localt hook_mastert hookt hook_new_tipt item( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/uncommit.pyt uncommit4 s€
N( t __doc__t
__future__R t bzrlibR R R% t
bzrlib.branchR t
bzrlib.errorsR R t FalseR R@ ( ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/uncommit.pyt <module> s
Copyright © 2017 || Recoded By Mr.Bumblebee