incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [19/20] git commit: [#6626] ticket:427 Handle HEAD in url_for_commit for svn
Date Tue, 10 Sep 2013 15:11:20 GMT
[#6626] ticket:427 Handle HEAD in url_for_commit 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/5445e840
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5445e840
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5445e840

Branch: refs/heads/cj/6540
Commit: 5445e8403ca9ed4a61973b207a7f91ec0c5762a6
Parents: 307921b
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Sep 10 12:47:15 2013 +0300
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 10 13:34:16 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5445e840/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index 3e6ea25..089572c 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -171,6 +171,8 @@ class SVNImplementation(M.RepositoryImplementation):
     def url_for_commit(self, commit, url_type=None):
         if hasattr(commit, '_id'):
             object_id = commit._id
+        elif commit == self._repo.app.default_branch_name:
+            object_id = commit
         else:
             object_id = self.rev_parse(commit)
         if ':' in object_id:


Mime
View raw message