diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-03-18 04:09:51 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-18 04:09:51 +0800 |
commit | 4eb2dc84942d6b5b8545667709978b57038e1982 (patch) | |
tree | e789787d2f1fa1fe4dd209afb85e6cf1be479fa0 | |
parent | 87fa13816362896d345a3e1fbe1e66c9776d732f (diff) | |
download | gsoc2013-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-x | release.py | 11 |
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): |