diff --git a/kallithea/controllers/changeset.py b/kallithea/controllers/changeset.py --- a/kallithea/controllers/changeset.py +++ b/kallithea/controllers/changeset.py @@ -192,6 +192,7 @@ class ChangesetController(BaseRepoContro #get ranges of revisions if preset rev_range = revision.split('...')[:2] enable_comments = True + c.cs_repo = c.db_repo try: if len(rev_range) == 2: enable_comments = False diff --git a/kallithea/controllers/compare.py b/kallithea/controllers/compare.py --- a/kallithea/controllers/compare.py +++ b/kallithea/controllers/compare.py @@ -219,6 +219,7 @@ class CompareController(BaseRepoControll c.org_ref_type = org_ref_type c.other_ref_type = other_ref_type + c.cs_repo = other_repo c.cs_ranges, c.cs_ranges_org, c.ancestor = self._get_changesets( org_repo.scm_instance.alias, org_repo.scm_instance, c.org_rev, other_repo.scm_instance, c.other_rev) diff --git a/kallithea/controllers/pullrequests.py b/kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py +++ b/kallithea/controllers/pullrequests.py @@ -199,6 +199,7 @@ class PullrequestsController(BaseRepoCon c.other_rev) = pull_request.other_ref.split(':') org_scm_instance = c.org_repo.scm_instance # property with expensive cache invalidation check!!! + c.cs_repo = c.org_repo c.cs_ranges = [org_scm_instance.get_changeset(x) for x in pull_request.revisions] c.cs_ranges_org = None # not stored and not important and moving target - could be calculated ... revs = [ctx.revision for ctx in reversed(c.cs_ranges)] diff --git a/kallithea/templates/changeset/changeset_range.html b/kallithea/templates/changeset/changeset_range.html --- a/kallithea/templates/changeset/changeset_range.html +++ b/kallithea/templates/changeset/changeset_range.html @@ -43,7 +43,7 @@ ${self.repo_context_bar('changelog')} %for cnt,cs in enumerate(c.cs_ranges):