summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-16 18:33:43 +0000
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-16 18:33:43 +0000
commite0e0783bcee3fe9b15a0e0db2e7a8caaee038dde (patch)
tree3235af961dfea5a91e1d0d10a65f8bc421cc0c68
parentf2a8d2887fdc27ee0cf619c2f1132418a2e5c8b4 (diff)
Fix creation of svn tagEMPATHY_2_26_0
From: Xavier Claessens <xclaesse@gmail.com> svn path=/branches/gnome-2-26/; revision=2699
-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):