Skip to content

Commit

Permalink
Add --masterfiles option to changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
nickanderson authored and kacf committed Aug 8, 2016
1 parent 86f6d4a commit 559b775
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion misc/changelog-generator/changelog-generator
Expand Up @@ -35,6 +35,7 @@ LOG_TYPE = 0
LOG_REPO = 1
LOG_COMMUNITY = 2
LOG_ENTERPRISE = 4
LOG_MASTERFILES = 8

def add_entry(sha, msg):
sha_list = ENTRIES.get(sha)
Expand All @@ -53,6 +54,7 @@ The command accepts all the same options that git-log does.
Options:
--community Automatically includes all repositories for community builds.
--enterprise Automatically includes Enterprise specific repositories.
--masterfiles Automatically includes masterfiles repository.
--repo Includes only the current repository.
--community and --enterprise can be given together to generate one master log
Expand All @@ -70,14 +72,17 @@ while True:
elif sys.argv[1] == "--enterprise":
LOG_TYPE |= LOG_ENTERPRISE
sys.argv[1:] = sys.argv[2:]
elif sys.argv[1] == "--masterfiles":
LOG_TYPE |= LOG_MASTERFILES
sys.argv[1:] = sys.argv[2:]
elif sys.argv[1] == "--repo":
LOG_TYPE |= LOG_REPO
sys.argv[1:] = sys.argv[2:]
else:
break

if LOG_TYPE == 0:
sys.stderr.write("Must give one of --community, --enterprise or --repo\n")
sys.stderr.write("Must give one of --community, --enterprise, --masterfiles or --repo\n")
sys.exit(1)

repos = []
Expand All @@ -91,6 +96,8 @@ if LOG_TYPE & LOG_ENTERPRISE != 0:
repos.append("../enterprise")
repos.append("../nova")
repos.append("../mission-portal")
if LOG_TYPE & LOG_MASTERFILES != 0:
repos.append("../masterfiles")
if LOG_TYPE == LOG_REPO:
repos.append(".")
else:
Expand Down

0 comments on commit 559b775

Please sign in to comment.