/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

Merge from by-reference-trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
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):
1720
1723
        BadInventoryFormat.__init__(self, msg=msg)
1721
1724
 
1722
1725
 
 
1726
class RootNotRich(BzrError):
 
1727
 
 
1728
    _fmt = """This operation requires rich root data storage"""
 
1729
 
 
1730
 
1723
1731
class NoSmartMedium(BzrError):
1724
1732
 
1725
1733
    _fmt = "The transport '%(transport)s' cannot tunnel the smart protocol."
 
1734
 
1726
1735
    internal_error = True
1727
1736
 
1728
1737
    def __init__(self, transport):
1792
1801
    def __init__(self, name):
1793
1802
        BzrError.__init__(self)
1794
1803
        self.name = name
 
1804
 
 
1805
 
 
1806
class UnsupportedInventoryKind(BzrError):
 
1807
    
 
1808
    _fmt = """Unsupported entry kind %(kind)s"""
 
1809
 
 
1810
    def __init__(self, kind):
 
1811
        self.kind = kind
 
1812
 
 
1813
 
 
1814
class BadSubsumeSource(BzrError):
 
1815
 
 
1816
    _fmt = """Can't subsume %(other_tree)s into %(tree)s.  %(reason)s"""
 
1817
 
 
1818
    def __init__(self, tree, other_tree, reason):
 
1819
        self.tree = tree
 
1820
        self.other_tree = other_tree
 
1821
        self.reason = reason
 
1822
 
 
1823
 
 
1824
class SubsumeTargetNeedsUpgrade(BzrError):
 
1825
    
 
1826
    _fmt = """Subsume target %(other_tree)s needs to be upgraded."""
 
1827
 
 
1828
    def __init__(self, other_tree):
 
1829
        self.other_tree = other_tree
 
1830
 
 
1831
 
 
1832
class BadReferenceTarget(BzrError):
 
1833
 
 
1834
    _fmt = "Can't add reference to %(other_tree)s into %(tree)s.  %(reason)s"
 
1835
 
 
1836
    internal_error = True
 
1837
 
 
1838
    def __init__(self, tree, other_tree, reason):
 
1839
        self.tree = tree
 
1840
        self.other_tree = other_tree
 
1841
        self.reason = reason