Changeset - e4a4006faceb
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2013-03-19 23:43:40
marcin@python-works.com
no_cache version of scm is now a function
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/hooks.py
Show inline comments
 
@@ -419,7 +419,7 @@ def handle_git_receive(repo_path, revs, 
 
        repo = repo.scm_instance
 
    else:
 
        #post push shouldn't use the cached instance never
 
        repo = repo.scm_instance_no_cache
 
        repo = repo.scm_instance_no_cache()
 

	
 
    repo.ui = baseui
 

	
rhodecode/model/db.py
Show inline comments
 
@@ -1056,7 +1056,7 @@ class Repository(Base, BaseModel):
 
        if cs_cache is None:
 
            cs_cache = EmptyChangeset()
 
            # use no-cache version here
 
            scm_repo = self.scm_instance_no_cache
 
            scm_repo = self.scm_instance_no_cache()
 
            if scm_repo:
 
                cs_cache = scm_repo.get_changeset()
 

	
 
@@ -1153,7 +1153,6 @@ class Repository(Base, BaseModel):
 
        """
 
        CacheInvalidation.set_invalidate(repo_name=self.repo_name)
 

	
 
    @LazyProperty
 
    def scm_instance_no_cache(self):
 
        return self.__get_instance()
 

	
0 comments (0 inline, 0 general)