Download:
child 96:92d44000f283
parent 94:1f9ea4fffb9c
95:14d83dc59b7e
Anton Shestakov <av6@dwimlabs.net>, Mon, 04 Jul 2016 15:52:24 +0800
checker: emit commit branch on its own line

2 файлов изменено, 7 вставок(+), 3 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
incoming.py file | annotate | diff | comparison | revisions
--- a/checker.py Sun Jul 03 23:56:46 2016 +0800
+++ b/checker.py Mon Jul 04 15:52:24 2016 +0800
@@ -107,7 +107,8 @@
ok = False
if ok:
- template = (r'# C&O commit: {rev}:{node} {branch}\n'
+ template = (r'# C&O commit: {rev}:{node}\n'
+ r'# C&O commit branch: {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')
--- a/incoming.py Sun Jul 03 23:56:46 2016 +0800
+++ b/incoming.py Mon Jul 04 15:52:24 2016 +0800
@@ -121,11 +121,14 @@
if m is not None:
url = m.group(1)
- m = re.match('^commit: (\d+):(\w+) (\w+)$', rest)
+ m = re.match('^commit: (\d+):(\w+)$', rest)
if m is not None:
rev = m.group(1)
node = m.group(2)
- branch = m.group(3)
+
+ m = re.match('^commit branch: (.+)$', rest)
+ if m is not None:
+ branch = m.group(1)
m = re.match('^commit date: (.+)$', rest)
if m is not None: