/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-11-03 01:21:30 UTC
  • mfrom: (7410.2.2 extra-fields)
  • Revision ID: breezy.the.bot@gmail.com-20191103012130-owjdgqjzmko7vma5
Allow unknown extras in git commits when just inspecting revisions, rather than importing.

Merged from https://code.launchpad.net/~jelmer/brz/extra-fields/+merge/374765

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
class GitSmartRemoteNotSupported(brz_errors.UnsupportedOperation):
63
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)