[PATCH 10 of 10 py3] repoview: specify setattr values as native strings

Augie Fackler raf at durin42.com
Sun Mar 12 14:57:50 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1489297686 18000
#      Sun Mar 12 00:48:06 2017 -0500
# Node ID 2ca323667f43ebf95f29d671fd00f3ae7753fa09
# Parent  e8cceea7006f5b63cc17444d2552b54c1b97f33a
repoview: specify setattr values as native strings

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -331,8 +331,8 @@ class repoview(object):
         if cl is None:
             cl = copy.copy(unfichangelog)
             cl.filteredrevs = revs
-            object.__setattr__(self, '_clcache', cl)
-            object.__setattr__(self, '_clcachekey', newkey)
+            object.__setattr__(self, r'_clcache', cl)
+            object.__setattr__(self, r'_clcachekey', newkey)
         return cl
 
     def unfiltered(self):


More information about the Mercurial-devel mailing list