/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: Vincent Ladeuil
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-01 02:50:57 UTC
  • mfrom: (6862.4.2 fetch-limit-unsupported)
  • Revision ID: v.ladeuil+lp@free.fr-20180301025057-moxu8jgwohpy6k3m
Allow InterBranch implementations to not provide support for limit= parameter.

Merged from https://code.launchpad.net/~jelmer/brz/fetch-limit-unsupported/+merge/340021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1867
1867
        self.tname = type(method_self).__name__
1868
1868
 
1869
1869
 
 
1870
class FetchLimitUnsupported(UnsupportedOperation):
 
1871
 
 
1872
    fmt = ("InterBranch %(interbranch)r does not support fetching limits.")
 
1873
 
 
1874
    def __init__(self, interbranch):
 
1875
        BzrError.__init__(self, interbranch=interbranch)
 
1876
 
 
1877
 
1870
1878
class NonAsciiRevisionId(UnsupportedOperation):
1871
1879
    """Raised when a commit is attempting to set a non-ascii revision id
1872
1880
       but cant.