-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
ú÷Oc @@ s´ d Z d d l m Z d d l m Z m Z m Z d d l m Z m
Z
m Z d d l m
Z
d d l m Z d e f d YZ d e f d
YZ d e
f d YZ d
S( s Full history branch formats.i ( t absolute_import( t debugt errorst revision( t Brancht BranchFormatMetadirt BzrBranch( t needs_write_lock( t mutter_callsitet FullHistoryBzrBranchc B@ s_ e Z d Z e d Z d Z d Z d Z d Z d Z e d d d Z RS( s4 Bzr branch which contains the full revision history.c C@ s | s t | t r2 t j d | d | n t j | } | j | } t | | k r t d t | | f n | j | d S( Nt revision_idt branchs %d != %d(
t
isinstancet
basestringR t InvalidRevisionIdt
_mod_revisiont ensure_nullt _lefthand_historyt lent AssertionErrort _set_revision_history( t selft revnoR
t history( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt set_last_revision_info* s c C@ s= | j } t | } | r, | | d f Sd t j f Sd S( Ni˙˙˙˙i ( t _revision_historyR R t
NULL_REVISION( R t rhR ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt _read_last_revision_info7 s
c C@ së d t j k r t d d n t j } x | D] } | | q/ Wt j d re | j \ } } n t | d k r t j } n
| d } | j
t | | | j | | j | j
| t j d rç | j | | n d S( Nt evili s) set_revision_history scales with history.t post_change_branch_tipi i˙˙˙˙( R t debug_flagsR R t check_not_reserved_idR t hookst last_revision_infoR R t _run_pre_change_branch_tip_hookst _write_revision_historyt _clear_cached_statet _cache_revision_historyt! _run_post_change_branch_tip_hooks( R t rev_historyR t rev_idt old_revnot old_revidt revid( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR ? s
c C@ s/ | j j d d j | d | j j d S( s Factored out of set_revision_history.
This performs the actual writing to disk.
It is intended to be called by set_revision_history.s revision-historys
t modeN( t
_transportt put_bytest joint bzrdirt _get_file_mode( R R ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR$ T s c C@ s? | j j d j d } | d d g k r; | j n | S( Ns revision-historys
i˙˙˙˙t ( R. t get_bytest splitt pop( R R ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt _gen_revision_history] s
c C@ sÓ t | t s, t t | j | | d S| t j k rD g } n | j } | d k r | g k r y | | j | d } Wq t
k
rž | j j | } | j
| j d } q Xn | j | d S( Ni ( R R t superR t _synchronize_historyR R R t Nonet indext
ValueErrort
repositoryt get_revisiont get_historyR ( R t destinationR
t new_historyt rev( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR9 d s
c C@ s | j | j | | | d S( 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( R R ( R R
t last_revt other_branch( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt generate_revision_historyu s N( t __name__t
__module__t __doc__R R R R R$ R7 R9 R: RE ( ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyR ' s
t
BzrBranch5c B@ s e Z d Z RS( 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.
( RF RG RH ( ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyRI s t BzrBranchFormat5c B@ sJ e Z d Z d Z e d Z d Z d d d d Z d Z RS( s Bzr 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.
c C@ s t S( N( RI ( R ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
_branch_class s c C@ s d S( s% See BranchFormat.get_format_string().s Bazaar-NG branch format 5
( ( t cls( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt get_format_string s c C@ s d S( s* See BranchFormat.get_format_description().s Branch format 5( ( R ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt get_format_description s c C@ s= | r t j | j n d d g } | j | | | | S( s+ Create a branch of this format in a_bzrdir.s revision-historyR3 s branch-name( s revision-historyR3 ( s branch-nameR3 ( R t UpgradeRequiredt user_urlt _initialize_helper( R t a_bzrdirt nameR= t append_revisions_onlyt
utf8_files( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
initialize¤ s
c C@ s t S( N( t False( R ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt
supports_tagsŽ s N(
RF RG RH RK t classmethodRM RN R: RV RX ( ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyRJ s N( RH t
__future__R t bzrlibR R R R t
bzrlib.branchR R R t bzrlib.decoratorsR t bzrlib.traceR R RI RJ ( ( ( s@ /usr/lib/python2.7/dist-packages/bzrlib/branchfmt/fullhistory.pyt <module> s ]
Copyright © 2017 || Recoded By Mr.Bumblebee