changeset 16610:f1745323a567

context: fix call to util.safehasattr
author Idan Kamara <idankk86@gmail.com>
date Wed, 09 May 2012 02:46:58 +0300
parents ddd4996740c7
children 726dd0fc7cfe
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue May 08 12:05:45 2012 -0500
+++ b/mercurial/context.py	Wed May 09 02:46:58 2012 +0300
@@ -697,7 +697,7 @@
             yield c
 
     def copies(self, c2):
-        if not util.hasattr(self, "_copycache"):
+        if not util.safehasattr(self, "_copycache"):
             self._copycache = {}
         sc2 = str(c2)
         if sc2 not in self._copycache: