-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ sà 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 d l
m Z d d l m
Z
d d l m Z d d l m Z d
e f d „ ƒ YZ d e f d
„ ƒ YZ d „ Z d „ Z e e e d „ Z d S( së Checking of bzr objects.
check_refs is a concept used for optimising check. Objects that depend on other
objects (e.g. tree on repository) can list the objects they would be requesting
so that when the dependent object is checked, matches can be pulled out and
evaluated in-line rather than re-reading the same data many times.
check_refs are tuples (kind, value). Currently defined kinds are:
* 'trees', where value is a revid and the looked up objects are revision trees.
* 'lefthand-distance', where value is a revid and the looked up objects are the
distance along the lefthand path to NULL for that revid.
* 'revision-existence', where value is a revid, and the result is True or False
indicating that the revision was found/not found.
i ( t absolute_import( t errorst ui( t Branch( t
ControlDir( t
NULL_REVISION( t note( t WorkingTree( t gettextt Checkc B@ s# e Z d Z e d „ Z d „ Z RS( s Check a repositoryc C@ s
| | _ d S( N( t
repository( t selfR
t
check_repo( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/check.pyt __init__B s c C@ s t | j ƒ ‚ d S( N( t NotImplementedErrort report_results( R t verbose( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/check.pyR E s ( t __name__t
__module__t __doc__t TrueR
R ( ( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/check.pyR ? s t VersionedFileCheckc B@ sz e Z d Z e d „ Z d e d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d
„ Z d „ Z RS(
s! Check a versioned file repositoryc C@ s£ | | _ d | _ t ƒ | _ i | _ d | _ d | _ t ƒ | _ t ƒ | _ g | _ | j
ƒ | _ i | _ | | _
g | _ g | _ i | _ i | _ d S( Ni ( R
t checked_rev_cntt sett ghostst missing_parent_linkst missing_inventory_sha_cntt missing_revision_cntt checked_weavest unreferenced_versionst inconsistent_parentst supports_rich_roott
rich_rootst text_key_referencesR t
other_resultst
_report_itemst pending_keyst ancestors( R R
R ( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/check.pyR
N s c C@ s | d k r i } n | j j ƒ t j j ƒ | _ zÀ| j j t d ƒ d d ƒ | j rÎ | j j t d ƒ d ƒ | j
ƒ | j j t d ƒ d ƒ | j j | ƒ | j j t d ƒ d ƒ | j ƒ n | j j t d ƒ d
ƒ | ró| j } i } t
ƒ } t
ƒ } t
ƒ } x | j ƒ D] \ } } | j | ƒ | \ }
} |
d k rk| j | ƒ | | <q$|
d k r‡| j | ƒ q$|
d
k r£| j | ƒ q$t d | ƒ ‚ q$W| j ƒ j | ƒ } xb | j ƒ D]T \ }
} | | d |
f <|
| k rÙ| d k rÙt | d
|
f <| j |
ƒ qÙqÙW| j ƒ j | ƒ } x+ | D]# }
t | d
|
f <| j |
ƒ qMWx | D] }
t | d
|
f <q{Wx[ | D]P } t | t ƒ rÁ| j | ƒ n t | t ƒ rœ| j j | j | ƒ ƒ qœqœWn Wd | j j ƒ | j j ƒ Xd S( Nt checki i s checking revisionss checking commit contentsi s checking file graphsi s checking branches and treesi t treess lefthand-distances revision-existences unknown ref kind for ref %s(! t NoneR
t lock_readR t
ui_factoryt nested_progress_bart progresst updateR R t check_revisionst _check_inventoriest check_weavesR t iteritemst
revision_treet addt AssertionErrort get_grapht find_lefthand_distancesR t removet get_parent_mapt Falset
isinstanceR t _checkR R"