Download:
child 4:69b4a7343f90
parent 2:213d23f13f6f
3:73d07ba32f93
Anton Shestakov <av6@dwimlabs.net>, Mon, 13 Jun 2016 11:08:16 +0800
checker: print/get revision info

1 файлов изменено, 15 вставок(+), 0 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Mon Jun 13 09:54:55 2016 +0800
+++ b/checker.py Mon Jun 13 11:08:16 2016 +0800
@@ -62,6 +62,21 @@
if ok and not run(['hg', 'clone', config['url'], source]):
ok = False
+ if ok:
+ print('$ cd {}'.format(source))
+ os.chdir(source)
+
+ if ok and not run(['hg', 'sum']):
+ ok = False
+
+ if ok:
+ template = (r'# C&O commit: {rev}:{node} {branch}\n'
+ r'# C&O commit date: {date|isodatesec}\n'
+ r'# C&O commit author: {author|person}\n'
+ r'# C&O commit message: {desc|firstline}\n')
+ if not run(['hg', 'log', '-r', '.', '-T', template], silent=True):
+ ok = False
+
print('# C&O task: cleanup')
rmtree(tmp)