/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/bzr/serializer.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-20 02:17:05 UTC
  • mfrom: (7518.1.2 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200720021705-5f11tmo1hdqjxm6x
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/387628

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Inventory/revision serialization."""
18
18
 
19
 
from .. import registry
 
19
from .. import errors, registry
 
20
 
 
21
 
 
22
class BadInventoryFormat(errors.BzrError):
 
23
 
 
24
    _fmt = "Root class for inventory serialization errors"
 
25
 
 
26
 
 
27
class UnexpectedInventoryFormat(BadInventoryFormat):
 
28
 
 
29
    _fmt = "The inventory was not in the expected format:\n %(msg)s"
 
30
 
 
31
    def __init__(self, msg):
 
32
        BadInventoryFormat.__init__(self, msg=msg)
 
33
 
 
34
 
 
35
class UnsupportedInventoryKind(errors.BzrError):
 
36
 
 
37
    _fmt = """Unsupported entry kind %(kind)s"""
 
38
 
 
39
    def __init__(self, kind):
 
40
        self.kind = kind
20
41
 
21
42
 
22
43
class Serializer(object):