commit 2e2832d27f4e1d8df5bf96806aaae9b4f5965659
Author: John Carr <john.carr@unrouted.co.uk>
Date:   Tue Nov 11 10:45:14 2008 +0000

    Add tag support

diff --git a/jhbuild/versioncontrol/svn.py b/jhbuild/versioncontrol/svn.py
index 91a9022..82532d7 100644
--- a/jhbuild/versioncontrol/svn.py
+++ b/jhbuild/versioncontrol/svn.py
@@ -119,9 +119,9 @@ class SubversionRepository(Repository):
         self.tags_template = tags_template or "%(module)s/tags/%(tag)s"
         self.svn_program = config.svn_program
 
-    branch_xml_attrs = ['module', 'checkoutdir', 'revision']
+    branch_xml_attrs = ['module', 'checkoutdir', 'revision', 'tag']
 
-    def branch(self, name, module=None, checkoutdir=None, revision=None):
+    def branch(self, name, module=None, checkoutdir=None, revision=None, tag=None):
         module_href = None
         if name in self.config.branches:
             if self.config.branches[name]:
@@ -136,6 +136,8 @@ class SubversionRepository(Repository):
             if revision:
                 if not revision.isdigit():
                     template = self.branches_template
+            elif tag:
+                template = self.tags_template
         else:
             module = name
             if revision:
@@ -143,6 +145,8 @@ class SubversionRepository(Repository):
                     template = self.trunk_template
                 else:
                     template = self.branches_template
+            elif tag:
+                template = self.tags_template
             else:
                 template = self.trunk_template
 
@@ -152,7 +156,7 @@ class SubversionRepository(Repository):
                 module_href = template % {
                     'module': module,
                     'branch': revision,
-                    'tag': revision,
+                    'tag': tag,
                 }
             else:
                 module_href = urlparse.urljoin(self.href, module)
diff --git a/modulesets/gnome-2.16.modules b/modulesets/gnome-2.16.modules
index 17d9e37..d01f458 100644
--- a/modulesets/gnome-2.16.modules
+++ b/modulesets/gnome-2.16.modules
@@ -189,7 +189,7 @@
     </dependencies>
   </autotools>
   <autotools id="atk">
-    <branch module="atk/tags/gnome-2-16"/>
+    <branch tag="gnome-2-16" />
     <dependencies>
       <dep package="glib"/>
     </dependencies>
@@ -204,7 +204,7 @@
     </dependencies>
   </autotools>
   <autotools id="gail">
-    <branch module="gail/tags/gnome-2-16"/>
+    <branch tag="gnome-2-16"/>
     <dependencies>
       <dep package="gtk+"/>
       <dep package="atk"/>
diff --git a/modulesets/gnome-2.18.modules b/modulesets/gnome-2.18.modules
index c11dc20..e767e39 100644
--- a/modulesets/gnome-2.18.modules
+++ b/modulesets/gnome-2.18.modules
@@ -378,7 +378,7 @@
     </dependencies>
   </autotools>
   <autotools id="libgnomecanvas">
-    <branch module="libgnomecanvas/tags/LIBGNOMECANVAS_2_14_1/"/>
+    <branch tag="LIBGNOMECANVAS_2_14_1"/>
     <dependencies>
       <dep package="gtk+"/>
       <dep package="libart_lgpl"/>
