# HG changeset patch # User Bjoern Ricks # Date 1294761845 0 # Node ID f7613aaa6a4e8f0893610eeab99f7756cc44183d # Parent 94ff51f691a22ce5625d755b2b9554c25e7110b5 fix issue if baserev is not a corresponding revision number (changed since kdepim is migrated to git) diff -r 94ff51f691a2 -r f7613aaa6a4e treepkg/subversion.py --- a/treepkg/subversion.py Tue Jan 11 15:52:40 2011 +0000 +++ b/treepkg/subversion.py Tue Jan 11 16:04:05 2011 +0000 @@ -346,6 +346,14 @@ pass return urlrev + def log_xml(self, url): + """Return the log in XML of the repository since the copy + """ + args = ["--stop-on-copy", + "--verbose", + "--xml"] + return run.capture_output(cmdexpand("svn log @args $url", **locals())) + def tag_pkg_parameters(self, tag_url): # FIXME: Don't hardcore svn tag path and regex match = re.search(r"/enterprise[^.]*\.[^.]*\." @@ -353,8 +361,9 @@ tag_url) if match: date = match.group("date") + # baserev is time since git migration baserev = match.group("baserev") - xml_log = log_xml(tag_url, baserev) + xml_log = self.log_xml(tag_url) revisions = extract_tag_revisions(xml_log) tag_change_count = len(revisions) return (date, tag_change_count)