Mercurial > treepkg > treepkg
comparison treepkg/git.py @ 531:b5e0c81c9bcc
update regex for tag name schema
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 22 Nov 2010 11:26:06 +0000 |
parents | 8138df69a32e |
children | 8b49548aa8d4 |
comparison
equal
deleted
inserted
replaced
530:f525825d186e | 531:b5e0c81c9bcc |
---|---|
177 return urlrev | 177 return urlrev |
178 | 178 |
179 def tag_pkg_parameters(self, tag_name): | 179 def tag_pkg_parameters(self, tag_name): |
180 # FIXME: Don't hardcore regex | 180 # FIXME: Don't hardcore regex |
181 #match = re.search(r"enterprise[^.]*\.[^.]*\." | 181 #match = re.search(r"enterprise[^.]*\.[^.]*\." |
182 match = re.search(r"enterprise[^.]*" | 182 match = re.search(r"enterprise[^.]*\.[^.]*" |
183 r"(?P<date>[0-9]{8})", | 183 r"(?P<date>[0-9]{8})", |
184 tag_name) | 184 tag_name) |
185 if match: | 185 if match: |
186 date = match.group("date") | 186 date = match.group("date") |
187 return (date, 1) | 187 return (date, 1) |