1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 2009 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
# pylint: disable-msg=E0211,E0213
"""BranchRevision interfaces."""
__metaclass__ = type
__all__ = [
'IBranchRevision',
]
from zope.interface import (
Attribute,
Interface,
)
from zope.schema import Int
from canonical.launchpad import _
class IBranchRevision(Interface):
"""The association between a revision and a branch.
BranchRevision records the relation of all revisions that are part of the
ancestry of a branch. History revisions have an integer sequence, merged
revisions have sequence set to None.
"""
sequence = Int(
title=_("Revision number"), required=True,
description=_("The index of the revision within the branch's history."
" None for merged revisions which are not part of the history."))
branch = Attribute("The branch this revision is included in.")
revision = Attribute("A revision that is included in the branch.")
|