diff --git a/rhodecode/apps/repository/tests/test_repo_commits.py b/rhodecode/apps/repository/tests/test_repo_commits.py --- a/rhodecode/apps/repository/tests/test_repo_commits.py +++ b/rhodecode/apps/repository/tests/test_repo_commits.py @@ -88,7 +88,7 @@ class TestRepoCommitView(object): response.mustcontain('21 files changed: 943 inserted, 288 deleted') # files op files - response.mustcontain('File no longer present at commit: %s' % + response.mustcontain('File not present at commit: %s' % _shorten_commit_id(commit_id)) # svn uses a different filename @@ -133,7 +133,7 @@ class TestRepoCommitView(object): response.mustcontain('21 files changed: 943 inserted, 288 deleted') # files op files - response.mustcontain('File no longer present at commit: %s' % + response.mustcontain('File not present at commit: %s' % _shorten_commit_id(commit_ids[1])) response.mustcontain('Added docstrings to vcs.cli') # commit msg response.mustcontain('Changed theme to ADC theme') # commit msg @@ -163,7 +163,7 @@ class TestRepoCommitView(object): response.mustcontain(_shorten_commit_id(commit_ids[1])) # files op files - response.mustcontain('File no longer present at commit: %s' % + response.mustcontain('File not present at commit: %s' % _shorten_commit_id(commit_ids[1])) # svn is special diff --git a/rhodecode/apps/repository/views/repo_compare.py b/rhodecode/apps/repository/views/repo_compare.py --- a/rhodecode/apps/repository/views/repo_compare.py +++ b/rhodecode/apps/repository/views/repo_compare.py @@ -300,6 +300,7 @@ class RepoCompareView(RepoAppView): diffset = codeblocks.DiffSet( repo_name=source_repo.repo_name, source_node_getter=codeblocks.diffset_node_getter(source_commit), + target_repo_name=self.db_repo_name, target_node_getter=codeblocks.diffset_node_getter(target_commit), ) c.diffset = self.path_filter.render_patchset_filtered( diff --git a/rhodecode/lib/codeblocks.py b/rhodecode/lib/codeblocks.py --- a/rhodecode/lib/codeblocks.py +++ b/rhodecode/lib/codeblocks.py @@ -377,6 +377,7 @@ class DiffSet(object): def __init__(self, highlight_mode=HL_REAL, repo_name=None, source_repo_name=None, source_node_getter=lambda filename: None, + target_repo_name=None, target_node_getter=lambda filename: None, source_nodes=None, target_nodes=None, # files over this size will use fast highlighting @@ -390,6 +391,7 @@ class DiffSet(object): self.source_nodes = source_nodes or {} self.target_nodes = target_nodes or {} self.repo_name = repo_name + self.target_repo_name = target_repo_name or repo_name self.source_repo_name = source_repo_name or repo_name self.max_file_size_limit = max_file_size_limit @@ -402,6 +404,7 @@ class DiffSet(object): file_stats={}, limited_diff=isinstance(patchset, LimitedDiffContainer), repo_name=self.repo_name, + target_repo_name=self.target_repo_name, source_repo_name=self.source_repo_name, source_ref=source_ref, target_ref=target_ref, @@ -414,6 +417,7 @@ class DiffSet(object): target_ref=diffset.target_ref, repo_name=diffset.repo_name, source_repo_name=diffset.source_repo_name, + target_repo_name=diffset.target_repo_name, )) diffset.files.append(filediff) diffset.changed_files += 1 diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -443,11 +443,14 @@ from rhodecode.lib.diffs import NEW_FILE <%def name="diff_menu(filediff, use_comments=False)">
%def>