changeset 3549:e4a4006faceb beta

no_cache version of scm is now a function
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 19 Mar 2013 23:43:40 +0100
parents b44bb596ddb2
children 7abbb77b02d0
files rhodecode/lib/hooks.py rhodecode/model/db.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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()