diff hgext/largefiles/uisetup.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/uisetup.py	Sat Sep 24 17:35:45 2011 +0200
+++ b/hgext/largefiles/uisetup.py	Thu Sep 29 16:48:48 2011 -0500
@@ -69,7 +69,7 @@
     extensions.wrapfunction(hg, 'merge', overrides.hg_merge)
 
     extensions.wrapfunction(archival, 'archive', overrides.override_archive)
-    if hasattr(cmdutil, 'bailifchanged'):
+    if util.safehasattr(cmdutil, 'bailifchanged'):
         extensions.wrapfunction(cmdutil, 'bailifchanged',
             overrides.override_bailifchanged)
     else: