Revision 595d480a devflow/__init__.py

b/devflow/__init__.py
44 44
branch_type = namedtuple("branch_type", ["builds_snapshot", "builds_release",
45 45
                                         "versioned", "allowed_version_re",
46 46
                                         "debian_branch"])
47
VERSION_RE = "[0-9]+\.[0-9]+(\.[0-9]+)*"
47
VERSION_RE = "[0-9]+\.[0-9]+(\.[0-9]+)*"  # pylint: disable=W1401
48
HOTFIX_RE = \
49
    "^(?P<bverstr>^%s\.[1-9][0-9]*)$" % VERSION_RE,  # pylint: disable=W1401
50

  
48 51
BRANCH_TYPES = {
49 52
    "feature": branch_type(True, False, False, "^%snext$" % VERSION_RE,
50
                          "debian-develop"),
53
                           "debian-develop"),
51 54
    "develop": branch_type(True, False, False, "^%snext$" % VERSION_RE,
52 55
                           "debian-develop"),
53 56
    "release": branch_type(True, True, True,
......
56 59
    "master": branch_type(True, True, False,
57 60
                          "^%s$" % VERSION_RE, "debian"),
58 61
    "hotfix": branch_type(True, True, True,
59
                          "^(?P<bverstr>^%s\.[1-9][0-9]*)$" % VERSION_RE,
62
                          HOTFIX_RE,
60 63
                          "debian")}
61 64
BASE_VERSION_FILE = "version"

Also available in: Unified diff