[zorg] r343634 - Fix usage of Python regular expressions for finding svn revisions
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 2 14:12:33 PDT 2018
Author: rnk
Date: Tue Oct 2 14:12:33 2018
New Revision: 343634
URL: http://llvm.org/viewvc/llvm-project?rev=343634&view=rev
Log:
Fix usage of Python regular expressions for finding svn revisions
Modified:
zorg/trunk/zorg/buildbot/builders/annotated/annotated_builder.py
Modified: zorg/trunk/zorg/buildbot/builders/annotated/annotated_builder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/annotated/annotated_builder.py?rev=343634&r1=343633&r2=343634&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/annotated/annotated_builder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/annotated/annotated_builder.py Tue Oct 2 14:12:33 2018
@@ -309,7 +309,7 @@ class AnnotatedBuilder:
except subprocess.CalledProcessError as e:
util.report("Failed to get most recent SVN rev: " + str(e))
return 1
- m = svninfo.match('^Revision: ([0-9]+)$')
+ m = re.search('Revision: ([0-9]+)', svninfo)
if m:
revision = m.group(1)
else:
More information about the llvm-commits
mailing list