# HG changeset patch # User Bjoern Ricks # Date 1275405090 0 # Node ID 2ecdfa0f345a16eba58fe8aa13e51f744c1c1518 # Parent 8bb8d8de12a2e101e29e4dfb6418b8cb0ce0b70e used full path (baseurl + subdir) for tag detection not only the first subdir don't think there exists any disadvantages in this approach for current packagers diff -r 8bb8d8de12a2 -r 2ecdfa0f345a treepkg/subversion.py --- a/treepkg/subversion.py Mon May 31 12:16:04 2010 +0000 +++ b/treepkg/subversion.py Tue Jun 01 15:11:30 2010 +0000 @@ -308,16 +308,7 @@ which part of the tag is meant. The subdir also determines which SVN directory's revision number is - used. Normally, just appending the subdir to the tag URL would be - enough for this, but the situation is more complex for - kdebase_workspace and kdebase_runtime, whose code comes from - different subdirectories of the kdebase-4.X-branch subdirectory (for - enterprise4 tags). Here the revision number must be taken from - kdebase-4.X-branch, but the URL to use when exporting the sources, - must refer to e.g. kdebase-4.1-branch/kdebase_workspace. To achieve - that, subdir may contain slashes to indicate subdirectories of - subdirectories, but only the first part of subdir (up to the first - slash) is used when determining the revision number. + used. """ def __init__(self, url, pattern, subdir): @@ -347,7 +338,7 @@ def determine_revision(self, baseurl, subdir): urlrev = (None, None) - revision_url = baseurl + "/" + subdir.split("/")[0] + revision_url = baseurl + "/" + subdir try: revision = last_changed_revision(revision_url) urlrev = (baseurl + "/" + subdir, revision)