/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

(broken) merge aaron's workingtree format changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
621
621
 
622
622
class BadFileKindError(BzrError):
623
623
 
624
 
    _fmt = "Cannot operate on %(filename)s of unsupported kind %(kind)s"
 
624
    _fmt = 'Cannot operate on "%(filename)s" of unsupported kind "%(kind)s"'
 
625
 
 
626
    def __init__(self, filename, kind):
 
627
        BzrError.__init__(self, filename=filename, kind=kind)
625
628
 
626
629
 
627
630
class ForbiddenControlFileError(BzrError):
1730
1733
        BadInventoryFormat.__init__(self, msg=msg)
1731
1734
 
1732
1735
 
 
1736
class RootNotRich(BzrError):
 
1737
 
 
1738
    _fmt = """This operation requires rich root data storage"""
 
1739
 
 
1740
 
1733
1741
class NoSmartMedium(BzrError):
1734
1742
 
1735
1743
    _fmt = "The transport '%(transport)s' cannot tunnel the smart protocol."
 
1744
 
1736
1745
    internal_error = True
1737
1746
 
1738
1747
    def __init__(self, transport):
1802
1811
    def __init__(self, name):
1803
1812
        BzrError.__init__(self)
1804
1813
        self.name = name
 
1814
 
 
1815
 
 
1816
class UnsupportedInventoryKind(BzrError):
 
1817
    
 
1818
    _fmt = """Unsupported entry kind %(kind)s"""
 
1819
 
 
1820
    def __init__(self, kind):
 
1821
        self.kind = kind
 
1822
 
 
1823
 
 
1824
class BadSubsumeSource(BzrError):
 
1825
 
 
1826
    _fmt = """Can't subsume %(other_tree)s into %(tree)s.  %(reason)s"""
 
1827
 
 
1828
    def __init__(self, tree, other_tree, reason):
 
1829
        self.tree = tree
 
1830
        self.other_tree = other_tree
 
1831
        self.reason = reason
 
1832
 
 
1833
 
 
1834
class SubsumeTargetNeedsUpgrade(BzrError):
 
1835
    
 
1836
    _fmt = """Subsume target %(other_tree)s needs to be upgraded."""
 
1837
 
 
1838
    def __init__(self, other_tree):
 
1839
        self.other_tree = other_tree
 
1840
 
 
1841
 
 
1842
class BadReferenceTarget(BzrError):
 
1843
 
 
1844
    _fmt = "Can't add reference to %(other_tree)s into %(tree)s.  %(reason)s"
 
1845
 
 
1846
    internal_error = True
 
1847
 
 
1848
    def __init__(self, tree, other_tree, reason):
 
1849
        self.tree = tree
 
1850
        self.other_tree = other_tree
 
1851
        self.reason = reason