# HG changeset patch # User Marcin Kuzminski # Date 1363733020 -3600 # Node ID e4a4006facebd53b3f84393c0bce0ccb1d57e504 # Parent b44bb596ddb2a4cbd60d604363f3b3e62491df69 no_cache version of scm is now a function diff -r b44bb596ddb2 -r e4a4006faceb rhodecode/lib/hooks.py --- a/rhodecode/lib/hooks.py Tue Mar 19 22:49:17 2013 +0100 +++ b/rhodecode/lib/hooks.py Tue Mar 19 23:43:40 2013 +0100 @@ -419,7 +419,7 @@ 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 diff -r b44bb596ddb2 -r e4a4006faceb rhodecode/model/db.py --- a/rhodecode/model/db.py Tue Mar 19 22:49:17 2013 +0100 +++ b/rhodecode/model/db.py Tue Mar 19 23:43:40 2013 +0100 @@ -1056,7 +1056,7 @@ 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 @@ """ CacheInvalidation.set_invalidate(repo_name=self.repo_name) - @LazyProperty def scm_instance_no_cache(self): return self.__get_instance()