app/models/changeset.rb
def compare_cache_key
    key =
      if static?
        @reference
      else
        @project.repo_commit_from_ref(@reference)
      end

    [self.class, @repo, @previous_commit, key].join('-')
  end
# for branches that frequently change we make sure to always get the correct cache,
# others might get an outdated changeset if they are reviewed with different shas
# it then still does a http request, but it is much faster
for branches that frequently change we make sure to always get the correct cache,
others might get an outdated changeset if they are reviewed with different shas
it then still does a http request, but it is much faster
for branches that frequently change we make sure to always get the correct cache others might get an outdated changeset if they are reviewed with different shas it then still does a http request but it is much faster
def compare_cache_key
    key =
      if static?
        @reference
      else
        @project.repo_commit_from_ref(@reference)
      end
    [self.class, @repo, @previous_commit, key].join('-')
  end
def compare_cache_key key = if static? @reference else @project . repo_commit_from_ref ( @reference ) end [ self . class , @repo , @previous_commit , key ] . join ( '-' ) end
for branches that frequently change we make sure to always get the correct cache,
others might get an outdated changeset if they are reviewed with different shas
it then still does a http request, but it is much faster
for branches that frequently change we make sure to always get the correct cache others might get an outdated changeset if they are reviewed with different shas it then still does a http request but it is much faster