-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ s d Z d d l m Z d d d d d g Z d d l m Z m Z m Z m Z d d l
m Z d d
l m
Z
d d l m Z m Z d d l m Z e d
„ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( sC Reconcilers are able to fix some potential data errors in a branch.i ( t absolute_importt KnitReconcilert PackReconcilert reconcilet
Reconcilert RepoReconciler( t cleanupt errorst revisiont ui( t mutter( t topo_sort( t AdapterFactoryt FulltextContentFactory( t gettextc C@ s t | d | ƒ} | j ƒ d S( se Reconcile the data in dir.
Currently this is limited to a inventory 'reweave'.
This is a convenience method, for using a Reconciler object.
Directly using Reconciler is recommended for library users that
desire fine grained control or analysis of the found issues.
:param canonicalize_chks: Make sure CHKs are in canonical form.
t canonicalize_chksN( R R ( t dirR t
reconciler( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR * s c B@ sA e Z d Z d e d „ Z d „ Z d „ Z d „ Z d „ Z RS( s0 Reconcilers are used to reconcile existing data.c C@ s | | _ | | _ d S( s Create a Reconciler.N( t bzrdirR ( t selfR t otherR ( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyt __init__= s c C@ s5 t j j ƒ | _ z | j ƒ Wd | j j ƒ Xd S( s! Perform reconciliation.
After reconciliation the following attributes document found issues:
* `inconsistent_parents`: The number of revisions in the repository
whose ancestry was being reported incorrectly.
* `garbage_inventories`: The number of inventory objects without
revisions that were garbage collected.
* `fixed_branch_history`: None if there was no branch, False if the
branch history was correct, True if the branch history needed to be
re-normalized.
N( R t
ui_factoryt nested_progress_bart pbt
_reconcilet finished( R ( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR B s
c C@ s | j ƒ | j ƒ d S( s. Helper function for performing reconciliation.N( t _reconcile_brancht _reconcile_repository( R ( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR U s
c C@ s| y | j j ƒ | _ Wn t j k
r6 d | _ d SXt j j t
d ƒ | j j ƒ | j j d t
ƒ } | j | _ d S( Ns Reconciling branch %st thorough( R t open_brancht branchR t NotBranchErrort Nonet fixed_branch_historyR R t noteR t baseR t Truet
fixed_history( R t branch_reconciler( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR Z s c C@ s) | j j ƒ | _ t j j t d ƒ | j j ƒ | j j t d ƒ d d ƒ | j
rª y | j j Wn0 t k
r— t
j t d ƒ | j f ƒ ‚ n X| j j ƒ } n | j j d t ƒ } | j | _ | j | _ | j rt j j t d ƒ ƒ t j j t d ƒ ƒ n t j j t d ƒ ƒ d S(
Ns Reconciling repository %ss Reconciling repositoryi i s %s cannot canonicalize CHKs.R s; Reconcile aborted: revision index has inconsistent parents.s! Run "bzr check" for more details.s Reconciliation complete.( R t find_repositoryt repoR R R# R t user_urlR t updateR t reconcile_canonicalize_chkst AttributeErrorR t BzrErrorR R% t inconsistent_parentst garbage_inventoriest aborted( R t repo_reconciler( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR e s(
N(
t __name__t
__module__t __doc__R! t FalseR R R R R ( ( ( s4 /usr/lib/python2.7/dist-packages/bzrlib/reconcile.pyR : s t BranchReconcilerc B@ s>