0
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Â418_‘I|¥‰ÓMdœv ©ƒ†ü+=ÂÁ ¢    ‹      µ“QOÛ0Çßù7?ì�ðŽ'–TZ¥ÒV%BhNì&IÙGK÷éqšL€B“¶'ŸíŸïÿ³Í¿¤Ë$»[MáGv=‡ÕÏïóYìñö4AL³tØ8‹N&ˆÓVuˆ»Ý.Ú�FÖ•˜­±¢¦>COÎ)RLñ~M¯´TaN†j-f­ÒO`7€ö‘¼Q:œÛ{Tzk
íû˜tƒ�n¬Û�Ã9¶Vé“q6™ ÌGN9³ÕÎs’9õxnÕ¾/cò¿$Cæƒ-™”ûÐ	NlemÊ6fd;&¸iJð®ˆšÂ¶óZ¶Qi6dM1»Ÿ%Ë_�CªúÓ‚K¨œÞÄì[/.—qÊÄB6š£|Ÿ¹Ìsé	«ÌÆhõ!|3À7æ÷Ç	Ó�Iµ/œéÈØöÅ`ñµÕÂÖ¾“ÁëypP¹×Ô€¨Ïº!‹7ÍX]­§‹,�­‡–¨>ÅKuÿä™XI§[‚Ô8]PØýb_ÛÜw—¦0VïLY Çð.ù7�ÁñÉp<¼QŽÃWyÉT��       ˆÀ¿Ã‚h@¾ÂÁ ¤    ‹      µ“QOÛ0Çßù7?ì�Œî�áxbI¥U*mU‚Ð4íÁ‰ÝÄZGöÑ®|ú9M �Òöä³ýóýï¶ù‡t™d?VSøž]Íauóm>K€#Þž%ˆi–“èäqº`À*¢îân·‹vg‘u%fk¬¨©'èÉ™‚"EŠ‰#Þ¯‰#à•–*ŒÀÉP­Å¬UúØ ½#o”çö•ÞšBû>&Ý`£ëöãp~Ž­UúdœN>¡¿ËGP9³ÕÎs²=ynÕ¾¯ãô¿i†Ôc2?H÷¡œ*ØÊÚ”mÌÈvLpÓ”à]34…m=æµlG¥Ù0�5Åìç,Yþ
RÕŸ\Båô&f_“xq±ŒS&²ÑåËÌU`.™˜KOÐXe6F«Wáë¾6÷¯'L&Õ¾p¦#cÛGƒÅ§V[ûN¯ŸƒƒÊ=¥D½ÕY<kÆêr=]dél=´Dõ)«û77ÈÄJ:Ý¤Æé‚ÂöhpPûØæ¾»x˜ÂX¾3eEL Ã‹ä{:ƒã›áxx¥‡ßòÁjW�       ˆÀ¿Ã464¾ÂÁ Ð    ‹      µ“_o›0Åßû)îü°·pC’ö¡5LDZ¤4‰ÒTÓ4íÁ`Ö #ÛI–~ú™À”tj´?Úž|�Ÿï9çÓ7ñ2Ú|ZMáÃæa«§÷óYd€øq!Æ›¸û0ñ†>âtA€Ö6·ˆûýÞÛ�=¥sÜ¬±°U9AcµL­Ç-'ámß…W@Á¸[�ZiKÎj.¾�Ê ÕÖÉ…Ûw0ÈÅN¦Â´µV¢RúÐ/¾ïc­¸bÚl¯Ñl“žâZî„6»ÖN{5š(~hMøÿGÐõ=FbÉQ·-uHm;VÊ¼ˆU	©¬r0:ÊTÕ“’Õ_½\fXiòy-¿8mÑî)ƒB‹, ï¢`q·b.X%(²×™ÇÜ“pÎŒ…Jq™IÁ/Â�ü(Ÿ/7Œ;&&Õ²±RÕ']Äó¨©*MÃ\Ök— ÐçT‡ð_Mƒ¥/†±º_O›x¶îFÂÛ'wÿàøH¸bZÔb©EjÚ§ë¤ÞÖ‰iî~<Bï]Ë¼°$À«äÎTÉ…>�|)l£•Kg”vžOõ¹ÛŸì�†£›�ïFð‡·ã€¿Êñ›Ç‹ý�OñxÏ(v—ý;Ð¨@ÄO    B   	ˆl–Ü4ý( ©”u( 	•íÀà™S�ÿ�þY Ä³rˆ�†A„% ?ŸÅ„mˆ_Ä_ŠI|¥�+Wé3ž¯ÄÃ <¢    	# Copyright (C) 2005, 2006 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

# TODO: Check ancestries are correct for every revision: includes
# every committed so far, and in a reasonable order.

# TODO: Also check non-mainline revisions mentioned as parents.

# TODO: Check for extra files in the control directory.

# TODO: Check revision, inventory and entry objects have all
# required fields.

# TODO: Get every revision in the revision-store even if they're not
# referenced by history and make sure they're all valid.

# TODO: Perhaps have a way to record errors other than by raising exceptions;
# would perhaps be enough to accumulate exception objects in a list without
# raising them.  If there's more than one exception it'd be good to see them
# all.

"""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.
"""

from .. import (
    ui,
    )
from ..branch import Branch
from ..check import Check
from ..revision import NULL_REVISION
from ..trace import note
from ..workingtree import WorkingTree
from ..i18n import gettext


class VersionedFileCheck(Check):
    """Check a versioned file repository"""

    # The Check object interacts with InventoryEntry.check, etc.

    def __init__(self, repository