allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [23/39] git commit: [#6626] ticket:427 Use HEAD revision as default for SVN
Date Tue, 10 Sep 2013 15:55:19 GMT
[#6626] ticket:427 Use HEAD revision as default for SVN


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/43f055ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/43f055ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/43f055ca

Branch: refs/heads/db/6545
Commit: 43f055caac9cd5e1e049922f2db27d3f73f4b0e9
Parents: 6bfdafd
Author: Yuriy Arhipov <yuriyarhipovua@yandex.ru>
Authored: Mon Sep 9 13:52:29 2013 +0400
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 10 13:34:15 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/controllers.py                       | 3 +--
 ForgeSVN/forgesvn/tests/functional/test_controllers.py | 5 +++++
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/43f055ca/ForgeSVN/forgesvn/controllers.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/controllers.py b/ForgeSVN/forgesvn/controllers.py
index 44d1a69..62f3d55 100644
--- a/ForgeSVN/forgesvn/controllers.py
+++ b/ForgeSVN/forgesvn/controllers.py
@@ -38,9 +38,8 @@ class BranchBrowser(repository.BranchBrowser, FeedController):
         latest = c.app.repo.latest(branch=self._branch)
         if is_empty or not latest:
             return dict(allow_fork=False, log=[], is_empty=is_empty)
-        redirect(c.app.repo.url_for_commit(c.app.default_branch_name) + 'tree/')
+        redirect('%s/tree/' % c.app.default_branch_name)
 
     @expose()
     def _lookup(self, rev, *remainder):
         return repository.CommitBrowser(rev), remainder
-

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/43f055ca/ForgeSVN/forgesvn/tests/functional/test_controllers.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/tests/functional/test_controllers.py b/ForgeSVN/forgesvn/tests/functional/test_controllers.py
index ae8c86d..691bd2e 100644
--- a/ForgeSVN/forgesvn/tests/functional/test_controllers.py
+++ b/ForgeSVN/forgesvn/tests/functional/test_controllers.py
@@ -59,6 +59,11 @@ class SVNTestController(TestController):
 
 
 class TestRootController(SVNTestController):
+
+    def test_head(self):
+        r = self.app.get('/src/')
+        assert r.location.endswith('/src/HEAD/tree/')
+
     def test_status(self):
         resp = self.app.get('/src/status')
         d = json.loads(resp.body)


Mime
View raw message