changeset 540:f7613aaa6a4e

fix issue if baserev is not a corresponding revision number (changed since kdepim is migrated to git)
author Bjoern Ricks <bricks@intevation.de>
date Tue, 11 Jan 2011 16:04:05 +0000
parents 94ff51f691a2
children 8b49548aa8d4
files treepkg/subversion.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)