diff mercurial/util.py @ 19852:57479e0d203d

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 01 Oct 2013 17:00:03 -0700
parents dfefb719eb92 a1237a4b437d
children d51c4d85ec23
line wrap: on
line diff
--- a/mercurial/util.py	Tue Oct 01 10:44:59 2013 -0700
+++ b/mercurial/util.py	Tue Oct 01 17:00:03 2013 -0700
@@ -283,7 +283,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'''