empathy r2699 - branches/gnome-2-26



Author: xclaesse
Date: Mon Mar 16 18:33:43 2009
New Revision: 2699
URL: http://svn.gnome.org/viewvc/empathy?rev=2699&view=rev

Log:
Fix creation of svn tag

From: Xavier Claessens <xclaesse gmail com>

Modified:
   branches/gnome-2-26/release.py

Modified: branches/gnome-2-26/release.py
==============================================================================
--- branches/gnome-2-26/release.py	(original)
+++ branches/gnome-2-26/release.py	Mon Mar 16 18:33:43 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]