/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 bzr.dev into deprecate-get-filename

Show diffs side-by-side

added added

removed removed

Lines of Context:
680
680
 
681
681
    _fmt = 'Path "%(path)s" is not a child of path "%(base)s"%(extra)s'
682
682
 
683
 
    internal_error = True
 
683
    internal_error = False
684
684
 
685
685
    def __init__(self, path, base, extra=None):
686
686
        BzrError.__init__(self)
782
782
 
783
783
    _fmt = 'File "%(path)s" is not in branch %(branch_base)s.'
784
784
 
 
785
    # use PathNotChild instead
 
786
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 3, 0)))
785
787
    def __init__(self, branch, path):
786
788
        BzrError.__init__(self)
787
789
        self.branch = branch
1178
1180
class InvalidRevisionSpec(BzrError):
1179
1181
 
1180
1182
    _fmt = ("Requested revision: '%(spec)s' does not exist in branch:"
1181
 
            " %(branch)s%(extra)s")
 
1183
            " %(branch_url)s%(extra)s")
1182
1184
 
1183
1185
    def __init__(self, spec, branch, extra=None):
1184
1186
        BzrError.__init__(self, branch=branch, spec=spec)
 
1187
        self.branch_url = getattr(branch, 'user_url', str(branch))
1185
1188
        if extra:
1186
1189
            self.extra = '\n' + str(extra)
1187
1190
        else: