##// END OF EJS Templates
no_cache version of scm is now a function
marcink -
r3549:e4a4006f beta
parent child Browse files
Show More
@@ -419,7 +419,7 b' def handle_git_receive(repo_path, revs, '
419 419 repo = repo.scm_instance
420 420 else:
421 421 #post push shouldn't use the cached instance never
422 repo = repo.scm_instance_no_cache
422 repo = repo.scm_instance_no_cache()
423 423
424 424 repo.ui = baseui
425 425
@@ -1056,7 +1056,7 b' class Repository(Base, BaseModel):'
1056 1056 if cs_cache is None:
1057 1057 cs_cache = EmptyChangeset()
1058 1058 # use no-cache version here
1059 scm_repo = self.scm_instance_no_cache
1059 scm_repo = self.scm_instance_no_cache()
1060 1060 if scm_repo:
1061 1061 cs_cache = scm_repo.get_changeset()
1062 1062
@@ -1153,7 +1153,6 b' class Repository(Base, BaseModel):'
1153 1153 """
1154 1154 CacheInvalidation.set_invalidate(repo_name=self.repo_name)
1155 1155
1156 @LazyProperty
1157 1156 def scm_instance_no_cache(self):
1158 1157 return self.__get_instance()
1159 1158
General Comments 0
You need to be logged in to leave comments. Login now