handle gitweb url and svn url
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 3 Jan 2011 14:41:44 +0000 (15:41 +0100)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 3 Jan 2011 14:41:44 +0000 (15:41 +0100)
module-tools.py

index 959a0e1..09c124a 100755 (executable)
@@ -1277,7 +1277,10 @@ def release_changelog(options, buildtag_old, buildtag_new, tagfile):
         os.system('rm -rf %s' % m.module_dir)
         m.init_module_dir()
 
-        print '* from', first, m.repository.gitweb()
+        if m.repository.type == "svn":
+            print '* from', first, m.repository.url()
+        else:
+            print '* from', first, m.repository.gitweb()
 
         specfile = m.main_specname()
         (tmpfd, tmpfile) = tempfile.mkstemp()
@@ -1287,7 +1290,10 @@ def release_changelog(options, buildtag_old, buildtag_new, tagfile):
         m.init_module_dir()
         specfile = m.main_specname()
 
-        print '* to', second, m.repository.gitweb()
+        if m.repository.type == "svn":
+            print '* to', second, m.repository.url()
+        else:
+            print '* to', second, m.repository.gitweb()
 
         print '{{{'
         os.system("diff -u %s %s" % (tmpfile, specfile))