/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 breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 00:52:27 UTC
  • mfrom: (6939 work)
  • mto: This revision was merged to the branch mainline in revision 7274.
  • Revision ID: jelmer@jelmer.uk-20180402005227-pecflp1mvdjrjqd6
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        self.tree = tree
246
246
 
247
247
 
248
 
class NoSuchIdInRepository(NoSuchId):
249
 
 
250
 
    _fmt = ('The file id "%(file_id)s" is not present in the repository'
251
 
            ' %(repository)r')
252
 
 
253
 
    def __init__(self, repository, file_id):
254
 
        BzrError.__init__(self, repository=repository, file_id=file_id)
255
 
 
256
 
 
257
248
class NotStacked(BranchError):
258
249
 
259
250
    _fmt = "The branch '%(branch)s' is not stacked."
1867
1858
        self.tname = type(method_self).__name__
1868
1859
 
1869
1860
 
1870
 
class CannotSetRevisionId(UnsupportedOperation):
1871
 
    """Raised when a commit is attempting to set a revision id but cant."""
 
1861
class FetchLimitUnsupported(UnsupportedOperation):
 
1862
 
 
1863
    fmt = ("InterBranch %(interbranch)r does not support fetching limits.")
 
1864
 
 
1865
    def __init__(self, interbranch):
 
1866
        BzrError.__init__(self, interbranch=interbranch)
1872
1867
 
1873
1868
 
1874
1869
class NonAsciiRevisionId(UnsupportedOperation):
2138
2133
        self.other_tree = other_tree
2139
2134
 
2140
2135
 
2141
 
class BadReferenceTarget(InternalBzrError):
2142
 
 
2143
 
    _fmt = "Can't add reference to %(other_tree)s into %(tree)s." \
2144
 
           "%(reason)s"
2145
 
 
2146
 
    def __init__(self, tree, other_tree, reason):
2147
 
        self.tree = tree
2148
 
        self.other_tree = other_tree
2149
 
        self.reason = reason
2150
 
 
2151
 
 
2152
2136
class NoSuchTag(BzrError):
2153
2137
 
2154
2138
    _fmt = "No such tag: %(tag_name)s"