aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-18 04:09:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-18 04:09:51 +0800
commit4eb2dc84942d6b5b8545667709978b57038e1982 (patch)
treee789787d2f1fa1fe4dd209afb85e6cf1be479fa0
parent87fa13816362896d345a3e1fbe1e66c9776d732f (diff)
downloadgsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar.gz
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar.bz2
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar.lz
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar.xz
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.tar.zst
gsoc2013-empathy-4eb2dc84942d6b5b8545667709978b57038e1982.zip
Fix creation of svn tag
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2710
-rwxr-xr-xrelease.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/release.py b/release.py
index e94629626..60977d502 100755
--- a/release.py
+++ b/release.py
@@ -248,11 +248,14 @@ class Project:
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):