gen-changelog.py: update for 1.x release tags
authorTim-Philipp Müller <tim@centricular.net>
Sat, 6 Oct 2012 13:49:56 +0000 (14:49 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 6 Oct 2012 13:51:32 +0000 (14:51 +0100)
We don't do the RELEASE- prefix any more for 1.x.

gen-changelog.py

index c79e7d3..9bddaa0 100644 (file)
@@ -74,7 +74,7 @@ def output_commits():
 
 def get_rel_tags():
     # Populate the release_refs dict with the tags for previous releases
-    reltagre = re.compile("^([a-z0-9]{40}) refs\/tags\/RELEASE-([0-9]+)[-_.]([0-9]+)[-_.]([0-9]+)")
+    reltagre = re.compile("^([a-z0-9]{40}) refs\/tags\/[RELEASE-]*([0-9]+)[-_.]([0-9]+)[-_.]([0-9]+)")
 
     cmd = ['git', 'show-ref', '--tags', '--dereference']
     p = subprocess.Popen(args=cmd, shell=False, stdout=subprocess.PIPE)