empathy r2710 - trunk



Author: xclaesse
Date: Tue Mar 17 20:09:51 2009
New Revision: 2710
URL: http://svn.gnome.org/viewvc/empathy?rev=2710&view=rev

Log:
Fix creation of svn tag

From: Xavier Claessens <xclaesse gmail com>

Modified:
   trunk/release.py

Modified: trunk/release.py
==============================================================================
--- trunk/release.py	(original)
+++ trunk/release.py	Tue Mar 17 20:09:51 2009
@@ -248,11 +248,14 @@
 		new_tag = self.package_name.upper() + '_' +\
 			  self.package_version.replace('.', '_')
 
-		svn_base = self.exec_cmd('git config svn-remote.svn.url').strip()
-		url1 = svn_base + '/trunk'
-		url2 = svn_base + '/tags/' + new_tag
-		self.exec_cmd('svn copy %s %s -m "Tagged for release %s."' % (url1, url2, self.package_version))
+		info = self.exec_cmd('git svn info | grep URL')
+		url1 = info[info.find(" "):].strip()
+		
+		end = url1.find("empathy")
+		end = url1.find("/", end)
+		url2 = url1[:end] + '/tags/' + new_tag
 
+		self.exec_cmd('svn copy %s %s -m "Tagged for release %s."' % (url1, url2, self.package_version))
 		self.exec_cmd('git tag -m "Tagged for release %s." %s' % ( self.package_version, new_tag))
 
 	def generate_news(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]