Mercurial > p > roundup > code
comparison scripts/contributors.py @ 7051:519cc743bf5a
Make contributers.py work.
check_output needed shell=True.
Also fix aliases for myself.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 15 Nov 2022 22:49:36 -0500 |
| parents | ce171c81d823 |
| children | 4919435ac231 |
comparison
equal
deleted
inserted
replaced
| 7050:889ddfbf8abe | 7051:519cc743bf5a |
|---|---|
| 26 'Bernhard Reiter <Bernhard.Reiter@intevation.de>'], | 26 'Bernhard Reiter <Bernhard.Reiter@intevation.de>'], |
| 27 'Ralf Schlatterbeck <rsc@runtux.com>': | 27 'Ralf Schlatterbeck <rsc@runtux.com>': |
| 28 ['Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>'], | 28 ['Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>'], |
| 29 'Stefan Seefeld <stefan@seefeld.name>': | 29 'Stefan Seefeld <stefan@seefeld.name>': |
| 30 ['Stefan Seefeld <stefan@users.sourceforge.net>'], | 30 ['Stefan Seefeld <stefan@users.sourceforge.net>'], |
| 31 'John P. Rouillard <rouilj@cs.umb.edu>': | 31 'John Rouillard <rouilj@ieee.org>': |
| 32 ['rouilj'], | 32 ['rouilj@uland', 'rouilj'] |
| 33 | |
| 33 } | 34 } |
| 34 ROBOTS = ['No Author <no-author@users.sourceforge.net>'] | 35 ROBOTS = ['No Author <no-author@users.sourceforge.net>'] |
| 35 # /-- | 36 # /-- |
| 36 | 37 |
| 37 | 38 |
| 76 yearstr += '%s' % years[-1] | 77 yearstr += '%s' % years[-1] |
| 77 return yearstr | 78 return yearstr |
| 78 | 79 |
| 79 | 80 |
| 80 if __name__ == '__main__': | 81 if __name__ == '__main__': |
| 82 | |
| 83 command = 'hg log --template "{date(date,\\"%Y\\")},{author}\\n"' | |
| 84 | |
| 81 if verbose: | 85 if verbose: |
| 82 print("Getting HG log...") | 86 print("Getting HG log...") |
| 83 authorship = check_output('hg log --template "{date(date,\\"%Y\\")},{author}\n"') | 87 print("Using: ", command) |
| 88 | |
| 89 authorship = check_output(command, shell=True) | |
| 84 # authorship are strings like | 90 # authorship are strings like |
| 85 # 2003,Richard Jones <richard@users.sourceforge.net> | 91 # 2003,Richard Jones <richard@users.sourceforge.net> |
| 86 # ... | 92 # ... |
| 87 | 93 |
| 88 if verbose: | 94 if verbose: |
