mercurial/util.py
branchstable
changeset 19845 a1237a4b437d
parent 19461 dd7c992d3cc1
child 19852 57479e0d203d
--- a/mercurial/util.py	Tue Oct 01 16:41:04 2013 -0300
+++ b/mercurial/util.py	Mon Sep 30 14:36:11 2013 +0200
@@ -279,7 +279,8 @@
         return result
 
     def cachevalue(self, obj, value):
-        setattr(obj, self.name, value)
+        # __dict__ assigment required to bypass __setattr__ (eg: repoview)
+        obj.__dict__[self.name] = value
 
 def pipefilter(s, cmd):
     '''filter string S through command CMD, returning its output'''