# HG changeset patch # User Mads Kiilerich # Date 1405701885 -7200 # Node ID edc266f04d5fef6254b4ca191725ba2d89603eeb # Parent f8f180cbe68d0a3dafc1a498ff170193ac3ea16c allover: branchtags should link to the branch in the changelog as it says, not to the current revision diff -r f8f180cbe68d -r edc266f04d5f kallithea/templates/branches/branches_data.html --- a/kallithea/templates/branches/branches_data.html Wed Jun 12 12:23:20 2013 +0200 +++ b/kallithea/templates/branches/branches_data.html Fri Jul 18 18:44:45 2014 +0200 @@ -18,8 +18,9 @@ ${branch[0]} - ${h.link_to(branch[0], - h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))} + + ${h.link_to(branch[0],h.url('changelog_home',repo_name=c.repo_name,branch=branch[0]))} + ${branch[1]._timestamp} @@ -44,8 +45,9 @@ ${branch[0]} - ${h.link_to(branch[0]+' [closed]', - h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))} + + ${h.link_to(branch[0]+' [closed]',h.url('changelog_home',repo_name=c.repo_name,branch=branch[0]))} + ${branch[1]._timestamp} diff -r f8f180cbe68d -r edc266f04d5f kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html Wed Jun 12 12:23:20 2013 +0200 +++ b/kallithea/templates/changeset/changeset.html Fri Jul 18 18:44:45 2014 +0200 @@ -103,7 +103,7 @@ %if c.changeset.branch: - ${h.link_to(c.changeset.branch,h.url('changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} + ${h.link_to(c.changeset.branch,h.url('changelog_home',repo_name=c.repo_name,branch=c.changeset.branch))} %endif diff -r f8f180cbe68d -r edc266f04d5f kallithea/tests/functional/test_branches.py --- a/kallithea/tests/functional/test_branches.py Wed Jun 12 12:23:20 2013 +0200 +++ b/kallithea/tests/functional/test_branches.py Fri Jul 18 18:44:45 2014 +0200 @@ -7,14 +7,14 @@ self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=HG_REPO)) - response.mustcontain("""default""" % HG_REPO) + response.mustcontain("""default""" % HG_REPO) # closed branches - response.mustcontain("""git [closed]<""" % HG_REPO) - response.mustcontain("""web [closed]""" % HG_REPO) + response.mustcontain("""git [closed]""" % HG_REPO) + response.mustcontain("""web [closed]""" % HG_REPO) def test_index_git(self): self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=GIT_REPO)) - response.mustcontain("""master""" % GIT_REPO) + response.mustcontain("""master""" % GIT_REPO)