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

Some more test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from dulwich import errors as git_errors
22
22
 
 
23
from dulwich.errors import NotCommitError
 
24
 
23
25
from bzrlib import errors as bzr_errors
24
26
 
25
27
 
30
32
class NoSuchRef(BzrGitError):
31
33
    """Raised when a ref can not be found."""
32
34
 
33
 
    _fmt = "The ref %(ref)s was not found."
 
35
    _fmt = "The ref %(ref)s was not found in the repository at %(location)s."
34
36
 
35
 
    def __init__(self, ref, present_refs=None):
 
37
    def __init__(self, ref, location, present_refs=None):
36
38
        self.ref = ref
 
39
        self.location = location
37
40
        self.present_refs = present_refs
38
41
 
39
42
 
49
52
    _fmt = "Push is not yet supported for bzr-git. Try dpush instead."
50
53
 
51
54
 
52
 
class GitSmartRemoteNotSupported(bzr_errors.BzrError):
 
55
class GitSmartRemoteNotSupported(bzr_errors.UnsupportedOperation):
53
56
    _fmt = "This operation is not supported by the Git smart server protocol."