You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2016/05/15 14:57:48 UTC
[02/12] qpid-site git commit: QPID-7265: allow specifying
SOURCE_RELEASE as 'tags/' format (should probably flip this and
change existing default from branches to tags..?)
QPID-7265: allow specifying SOURCE_RELEASE as 'tags/<version>' format (should probably flip this and change existing default from branches to tags..?)
Project: http://git-wip-us.apache.org/repos/asf/qpid-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-site/commit/e53ba14e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-site/tree/e53ba14e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-site/diff/e53ba14e
Branch: refs/heads/asf-site
Commit: e53ba14ecfb243317f15d8db7a525aa46dc8e21f
Parents: 1b73996
Author: Robert Gemmell <ro...@apache.org>
Authored: Sun May 15 15:54:59 2016 +0100
Committer: Robert Gemmell <ro...@apache.org>
Committed: Sun May 15 15:57:23 2016 +0100
----------------------------------------------------------------------
python/generate.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/e53ba14e/python/generate.py
----------------------------------------------------------------------
diff --git a/python/generate.py b/python/generate.py
index 23fa885..ff2e496 100644
--- a/python/generate.py
+++ b/python/generate.py
@@ -80,22 +80,26 @@ def setup_release_script():
def get_release_branch_url(module, release):
project_url = "http://svn.apache.org/repos/asf/qpid"
+ release_path_prefix = "branches/"
+ if release.startswith("tags/"):
+ release_path_prefix = ""
+
if module == "main":
- path = "branches/{}/qpid".format(release)
+ path = "{}{}/qpid".format(release_path_prefix, release)
if release == "trunk":
path = "trunk/qpid"
return "{}/{}".format(project_url, path)
elif module == "cpp":
- path = "branches/qpid-cpp-{}-rc/qpid".format(release)
+ path = "{}qpid-cpp-{}-rc/qpid".format(release_path_prefix, release)
if release == "trunk":
path = "trunk/qpid"
return "{}/{}".format(project_url, path)
- path = "{}/branches/{}".format(module, release)
+ path = "{}/{}{}".format(module, release_path_prefix, release)
if release == "trunk":
path = "{}/trunk".format(module, release)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org