[PATCH] context: fix call to util.safehasattr
Idan Kamara
idankk86 at gmail.com
Tue May 8 18:47:35 CDT 2012
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1336520818 -10800
# Node ID f1745323a56765a11e33491859fdc8e0985fed77
# Parent ddd4996740c785cc187766249977ea3ece8c17ab
context: fix call to util.safehasattr
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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:
More information about the Mercurial-devel
mailing list