%for tag in cs.tags:
@@ -317,7 +317,7 @@ ${self.repo_context_bar('showpullrequest
${_('Common ancestor')}:
- ${h.link_to(h.short_id(c.a_rev),h.url('changeset_home',repo_name=c.a_repo.repo_name,revision=c.a_rev))}
+ ${h.link_to(h.short_id(c.a_rev),h.url('changeset_home',repo_name=c.a_repo.repo_name,revision=c.a_rev), class_="changeset_hash")}
## FILES
diff --git a/kallithea/tests/functional/test_changelog.py b/kallithea/tests/functional/test_changelog.py
--- a/kallithea/tests/functional/test_changelog.py
+++ b/kallithea/tests/functional/test_changelog.py
@@ -17,7 +17,7 @@ class TestChangelogController(TestContro
)
#rev 640: code garden
response.mustcontain(
- """
r640:0a4e54a44604"""
+ """
r640:0a4e54a44604""" % HG_REPO
)
response.mustcontain("""code garden""")
@@ -48,7 +48,7 @@ class TestChangelogController(TestContro
)
response.mustcontain(
- """
r539:22baf968d547"""
+ """
r539:22baf968d547"""
)
def test_index_git(self):
@@ -65,7 +65,7 @@ class TestChangelogController(TestContro
)
response.mustcontain(
- """
r613:95f9a91d775b"""
+ """
r613:95f9a91d775b"""
)
response.mustcontain("""fixing stupid typo in context for mercurial""")
@@ -104,7 +104,7 @@ class TestChangelogController(TestContro
)
response.mustcontain(
- """
r515:636ed213f2f1"""
+ """
r515:636ed213f2f1"""
)
def test_index_hg_with_filenode(self):
diff --git a/kallithea/tests/functional/test_compare.py b/kallithea/tests/functional/test_compare.py
--- a/kallithea/tests/functional/test_compare.py
+++ b/kallithea/tests/functional/test_compare.py
@@ -68,8 +68,8 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs1.raw_id, 'commit2'))
response.mustcontain(_commit_div(cs2.raw_id, 'commit3'))
- response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
- response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
+ response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+ response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
## files
response.mustcontain("""
file1""")
#swap
@@ -119,8 +119,8 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs1.raw_id, 'commit2'))
response.mustcontain(_commit_div(cs2.raw_id, 'commit3'))
- response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
- response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
+ response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+ response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
## files
response.mustcontain("""
file1""")
#swap
@@ -178,8 +178,8 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs1.raw_id, 'commit2'))
response.mustcontain(_commit_div(cs2.raw_id, 'commit3'))
- response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
- response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
+ response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+ response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
## files
response.mustcontain("""
file1""")
#swap
@@ -237,8 +237,8 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs1.raw_id, 'commit2'))
response.mustcontain(_commit_div(cs2.raw_id, 'commit3'))
- response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
- response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
+ response.mustcontain("""
r1:%s""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+ response.mustcontain("""
r2:%s""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
## files
response.mustcontain("""
file1""")
#swap
@@ -306,9 +306,9 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs3.raw_id, 'commit4'))
response.mustcontain(_commit_div(cs4.raw_id, 'commit5'))
- response.mustcontain("""
r2:%s""" % (repo1.repo_name, cs2.raw_id, cs2.short_id))
- response.mustcontain("""
r3:%s""" % (repo1.repo_name, cs3.raw_id, cs3.short_id))
- response.mustcontain("""
r4:%s""" % (repo1.repo_name, cs4.raw_id, cs4.short_id))
+ response.mustcontain("""
r2:%s""" % (repo1.repo_name, cs2.raw_id, cs2.short_id))
+ response.mustcontain("""
r3:%s""" % (repo1.repo_name, cs3.raw_id, cs3.short_id))
+ response.mustcontain("""
r4:%s""" % (repo1.repo_name, cs4.raw_id, cs4.short_id))
## files
response.mustcontain("""#C--826e8142e6ba">file1""")
@@ -372,9 +372,9 @@ class TestCompareController(TestControll
response.mustcontain(_commit_div(cs4.raw_id, 'commit5'))
response.mustcontain(_commit_div(cs5.raw_id, 'commit6'))
- response.mustcontain("""
r3:%s""" % (repo1.repo_name, cs3.raw_id, cs3.short_id))
- response.mustcontain("""
r4:%s""" % (repo1.repo_name, cs4.raw_id, cs4.short_id))
- response.mustcontain("""
r5:%s""" % (repo1.repo_name, cs5.raw_id, cs5.short_id))
+ response.mustcontain("""
r3:%s""" % (repo1.repo_name, cs3.raw_id, cs3.short_id))
+ response.mustcontain("""
r4:%s""" % (repo1.repo_name, cs4.raw_id, cs4.short_id))
+ response.mustcontain("""
r5:%s""" % (repo1.repo_name, cs5.raw_id, cs5.short_id))
## files
response.mustcontain("""#C--826e8142e6ba">file1""")
@@ -403,9 +403,9 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (HG_FORK, rev2))
## outgoing changesets between those revisions
- response.mustcontain("""
r4:2dda4e345fac""" % (HG_FORK))
- response.mustcontain("""
r5:6fff84722075""" % (HG_FORK))
- response.mustcontain("""
r6:%s""" % (HG_FORK, rev2))
+ response.mustcontain("""
r4:2dda4e345fac""" % (HG_FORK))
+ response.mustcontain("""
r5:6fff84722075""" % (HG_FORK))
+ response.mustcontain("""
r6:%s""" % (HG_FORK, rev2))
## files
response.mustcontain("""
vcs/backends/hg.py""")
@@ -433,9 +433,9 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (GIT_FORK, rev2))
## outgoing changesets between those revisions
- response.mustcontain("""
r4:49d3fd156b6f""" % (GIT_FORK))
- response.mustcontain("""
r5:2d1028c05466""" % (GIT_FORK))
- response.mustcontain("""
r6:%s""" % (GIT_FORK, rev2[:12]))
+ response.mustcontain("""
r4:49d3fd156b6f""" % (GIT_FORK))
+ response.mustcontain("""
r5:2d1028c05466""" % (GIT_FORK))
+ response.mustcontain("""
r6:%s""" % (GIT_FORK, rev2[:12]))
## files
response.mustcontain("""
vcs/backends/hg.py""")
diff --git a/kallithea/tests/functional/test_compare_local.py b/kallithea/tests/functional/test_compare_local.py
--- a/kallithea/tests/functional/test_compare_local.py
+++ b/kallithea/tests/functional/test_compare_local.py
@@ -18,13 +18,13 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (HG_REPO, tag2))
## outgoing changesets between tags
- response.mustcontain('''
r112:c5ddebc06eaa''' % HG_REPO)
- response.mustcontain('''
r115:70d4cef8a376''' % HG_REPO)
- response.mustcontain('''
r116:9749bfbfc0d2''' % HG_REPO)
- response.mustcontain('''
r117:41fda979f02f''' % HG_REPO)
- response.mustcontain('''
r118:bb1a3ab98cc4''' % HG_REPO)
- response.mustcontain('''
r119:36e0fc9d2808''' % HG_REPO)
- response.mustcontain('''
r120:17544fbfcd33''' % HG_REPO)
+ response.mustcontain('''
r112:c5ddebc06eaa''' % HG_REPO)
+ response.mustcontain('''
r115:70d4cef8a376''' % HG_REPO)
+ response.mustcontain('''
r116:9749bfbfc0d2''' % HG_REPO)
+ response.mustcontain('''
r117:41fda979f02f''' % HG_REPO)
+ response.mustcontain('''
r118:bb1a3ab98cc4''' % HG_REPO)
+ response.mustcontain('''
r119:36e0fc9d2808''' % HG_REPO)
+ response.mustcontain('''
r120:17544fbfcd33''' % HG_REPO)
response.mustcontain('11 files changed with 94 insertions and 64 deletions')
@@ -78,13 +78,13 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (GIT_REPO, tag2))
## outgoing changesets between tags
- response.mustcontain('''
r113:794bbdd31545''' % GIT_REPO)
- response.mustcontain('''
r115:e36d8c502532''' % GIT_REPO)
- response.mustcontain('''
r116:5c9ff4f6d750''' % GIT_REPO)
- response.mustcontain('''
r117:b7187fa2b8c1''' % GIT_REPO)
- response.mustcontain('''
r118:5f3b74262014''' % GIT_REPO)
- response.mustcontain('''
r119:17438a11f72b''' % GIT_REPO)
- response.mustcontain('''
r120:5a3a8fb00555''' % GIT_REPO)
+ response.mustcontain('''
r113:794bbdd31545''' % GIT_REPO)
+ response.mustcontain('''
r115:e36d8c502532''' % GIT_REPO)
+ response.mustcontain('''
r116:5c9ff4f6d750''' % GIT_REPO)
+ response.mustcontain('''
r117:b7187fa2b8c1''' % GIT_REPO)
+ response.mustcontain('''
r118:5f3b74262014''' % GIT_REPO)
+ response.mustcontain('''
r119:17438a11f72b''' % GIT_REPO)
+ response.mustcontain('''
r120:5a3a8fb00555''' % GIT_REPO)
response.mustcontain('11 files changed with 94 insertions and 64 deletions')
@@ -149,7 +149,7 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (HG_REPO, rev2))
## outgoing changesets between those revisions
- response.mustcontain("""
r1:%s""" % (HG_REPO, rev2))
+ response.mustcontain("""
r1:%s""" % (HG_REPO, rev2))
response.mustcontain('1 file changed with 7 insertions and 0 deletions')
## files
@@ -171,7 +171,7 @@ class TestCompareController(TestControll
response.mustcontain('%s@%s' % (GIT_REPO, rev2))
## outgoing changesets between those revisions
- response.mustcontain("""
r1:%s""" % (GIT_REPO, rev2[:12]))
+ response.mustcontain("""
r1:%s""" % (GIT_REPO, rev2[:12]))
response.mustcontain('1 file changed with 7 insertions and 0 deletions')
## files
@@ -193,10 +193,10 @@ class TestCompareController(TestControll
extra_environ={'HTTP_X_PARTIAL_XHR': '1'},)
## outgoing changesets between those revisions
- response.mustcontain("""
r1:%s""" % (HG_REPO, rev2))
+ response.mustcontain("""
r1:%s""" % (HG_REPO, rev2))
response.mustcontain('Common ancestor')
- response.mustcontain("""
%s""" % (HG_REPO, rev1))
+ response.mustcontain("""
%s""" % (HG_REPO, rev1))
def test_compare_revisions_git_as_form(self):
self.log_user()
@@ -213,7 +213,7 @@ class TestCompareController(TestControll
),
extra_environ={'HTTP_X_PARTIAL_XHR': '1'},)
## outgoing changesets between those revisions
- response.mustcontain("""
r1:%s""" % (GIT_REPO, rev2[:12]))
+ response.mustcontain("""
r1:%s""" % (GIT_REPO, rev2[:12]))
response.mustcontain('Common ancestor')
- response.mustcontain("""
%s""" % (GIT_REPO, rev1[:12]))
+ response.mustcontain("""
%s""" % (GIT_REPO, rev1[:12]))