diff hgext/largefiles/overrides.py @ 15169:aa262fff87ac

largefile: fix up hasattr usage
author Matt Mackall <mpm@selenic.com>
date Thu, 29 Sep 2011 16:48:48 -0500
parents cfccd3bee7b3
children c1a4a3220711
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Sat Sep 24 17:35:45 2011 +0200
+++ b/hgext/largefiles/overrides.py	Thu Sep 29 16:48:48 2011 -0500
@@ -483,7 +483,7 @@
             oldmatch = None # for the closure
             def override_match(ctxorrepo, pats=[], opts={}, globbed=False,
                     default='relpath'):
-                if hasattr(ctxorrepo, 'match'):
+                if util.safehasattr(ctxorrepo, 'match'):
                     ctx0 = ctxorrepo
                 else:
                     ctx0 = ctxorrepo[None]