Skip to content
Snippets Groups Projects
Commit 5469f99c authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: formatting

parent 85523f65
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ import unicodedata as ud
# This is a combination of unifying git logs as well as
# name change requested by the authors.
AuthorLookup = {
author_table = {
"Aaron": "Aaron Carlisle",
"Your Name": "Aaron Carlisle",
"Alan": "Alan Troth",
......@@ -84,7 +84,7 @@ AuthorLookup = {
"blender": "Sergey Sharybin",
"Vuk GardaÅ¡ević": "Vuk Gardašević",
"ianwill": "Willian Padovani Germano",
}
}
# -----------------------------------------------------------------------------
......@@ -112,7 +112,7 @@ class Credits:
def process_commit(self, c):
# Normalize author string into canonical form, prevents duplicate credit users
author = ud.normalize('NFC', c.author)
author = AuthorLookup.get(author, author)
author = author_table.get(author, author)
year = c.date.year
cu = self.users.get(author)
if cu is None:
......@@ -177,12 +177,17 @@ def argparse_create():
parser.add_argument(
"--source", dest="source_dir",
metavar='PATH', required=True,
help="Path to git repository")
metavar='PATH',
required=True,
help="Path to git repository",
)
parser.add_argument(
"--range", dest="range_sha1",
metavar='SHA1_RANGE', required=True,
help="Range to use, eg: 169c95b8..HEAD")
"--range",
dest="range_sha1",
metavar='SHA1_RANGE',
required=True,
help="Range to use, eg: 169c95b8..HEAD",
)
return parser
......
......@@ -25,7 +25,7 @@
This is a tool for reviewing commit ranges, writing into accept/reject files,
and optionally generate release-log-ready data.
Useful for reviewing revisions to backport to stable builds.
Useful for reviewing revisions to back-port to stable builds.
Note that, if any of the data files generated already exist, they will be extended
with new revisions, not overwritten.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment