##// END OF EJS Templates
commits: pre-load branch on commit cache to skip excessive calls to vcsserver
marcink -
r3886:33e11360 default
parent child Browse files
Show More
@@ -2298,7 +2298,7 b' class Repository(Base, BaseModel):'
2298
2298
2299 def update_commit_cache(self, cs_cache=None, config=None):
2299 def update_commit_cache(self, cs_cache=None, config=None):
2300 """
2300 """
2301 Update cache of last changeset for repository, keys should be::
2301 Update cache of last commit for repository, keys should be::
2302
2302
2303 source_repo_id
2303 source_repo_id
2304 short_id
2304 short_id
@@ -2319,7 +2319,7 b' class Repository(Base, BaseModel):'
2319 empty = scm_repo is None or scm_repo.is_empty()
2319 empty = scm_repo is None or scm_repo.is_empty()
2320 if not empty:
2320 if not empty:
2321 cs_cache = scm_repo.get_commit(
2321 cs_cache = scm_repo.get_commit(
2322 pre_load=["author", "date", "message", "parents"])
2322 pre_load=["author", "date", "message", "parents", "branch"])
2323 else:
2323 else:
2324 cs_cache = EmptyCommit()
2324 cs_cache = EmptyCommit()
2325
2325
General Comments 0
You need to be logged in to leave comments. Login now