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

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
 
18
 
18
19
"""A grouping of Exceptions for bzr-git"""
19
20
 
 
21
from __future__ import absolute_import
 
22
 
20
23
from dulwich import errors as git_errors
21
24
 
22
25
from .. import errors as brz_errors
58
61
 
59
62
class GitSmartRemoteNotSupported(brz_errors.UnsupportedOperation):
60
63
    _fmt = "This operation is not supported by the Git smart server protocol."
 
64
 
 
65
 
 
66
class UnknownCommitExtra(brz_errors.BzrError):
 
67
    _fmt = "Unknown extra fields in %(object)r: %(fields)r."
 
68
 
 
69
    def __init__(self, object, fields):
 
70
        brz_errors.BzrError.__init__(self)
 
71
        self.object = object
 
72
        self.fields = ",".join(fields)
 
73
 
 
74
 
 
75
class UnknownMercurialCommitExtra(brz_errors.BzrError):
 
76
    _fmt = "Unknown mercurial extra fields in %(object)r: %(fields)r."
 
77
 
 
78
    def __init__(self, object, fields):
 
79
        brz_errors.BzrError.__init__(self)
 
80
        self.object = object
 
81
        self.fields = b",".join(fields)