diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-03-23 04:51:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-03-23 04:51:11 +0000 |
| commit | 329b8dd639e4f65369547f96f0ad841bb2fdf113 (patch) | |
| tree | b74a27545b3048a3ea4cae5151806d176b28ac0e /openstack/common | |
| parent | 3e91e6d123cc737aebc80d2e7b413183bbc6828e (diff) | |
| parent | 6e8b9ba12c96cbf422edd54a6cb12cbc0df66514 (diff) | |
| download | oslo-329b8dd639e4f65369547f96f0ad841bb2fdf113.tar.gz oslo-329b8dd639e4f65369547f96f0ad841bb2fdf113.tar.xz oslo-329b8dd639e4f65369547f96f0ad841bb2fdf113.zip | |
Merge "Include Co-authored-by entries in AUTHORS."
Diffstat (limited to 'openstack/common')
| -rw-r--r-- | openstack/common/setup.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openstack/common/setup.py b/openstack/common/setup.py index 030df61..dec74fd 100644 --- a/openstack/common/setup.py +++ b/openstack/common/setup.py @@ -171,6 +171,14 @@ def generate_authors(): " log --format='%aN <%aE>' | sort -u | " "egrep -v '" + jenkins_email + "'") changelog = _run_shell_command(git_log_cmd) + signed_cmd = ("git log --git-dir=" + git_dir + + " | grep -i Co-authored-by: | sort -u") + signed_entries = _run_shell_command(signed_cmd) + if signed_entries: + new_entries = "\n".join( + [signed.split(":", 1)[1].strip() + for signed in signed_entries.split("\n") if signed]) + changelog = "\n".join((changelog, new_entries)) mailmap = _parse_git_mailmap(git_dir) with open(new_authors, 'w') as new_authors_fh: new_authors_fh.write(canonicalize_emails(changelog, mailmap)) |
