Change formulation in definition files to 'Support for ...' for newly added features.

This commit is contained in:
Sebastian Lackner
2014-08-13 02:15:22 +02:00
parent 731a458cbe
commit 786742620a
9 changed files with 30 additions and 24 deletions

View File

@@ -172,12 +172,17 @@ def enum_directories(revision, path):
def read_definition(revision, filename, name_to_id):
"""Read a definition file and return information as tuple (authors, depends, fixes)."""
filename = "%s:%s" % (revision if revision else "", os.path.join(filename, "definition"))
try:
with open(os.devnull, 'w') as devnull:
content = subprocess.check_output(["git", "show", filename], stderr=devnull)
except CalledProcessError:
raise IOError("Failed to read %s" % filename)
filename = os.path.join(filename, "definition")
if revision is None:
with open(filename) as fp:
content = fp.read()
else:
filename = "%s:%s" % (revision, filename)
try:
with open(os.devnull, 'w') as devnull:
content = subprocess.check_output(["git", "show", filename], stderr=devnull)
except CalledProcessError:
raise IOError("Failed to load %s" % filename)
authors = []
depends = set()