walk: we always have a badfn
authorMatt Mackall <mpm@selenic.com>
Sun, 31 May 2009 17:54:18 -0500
changeset 8676 acd69fc201a5
parent 8675 fb74e1e69da0
child 8677 34df078b8b1b
walk: we always have a badfn
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sun May 31 17:54:18 2009 -0500
+++ b/mercurial/dirstate.py	Sun May 31 17:54:18 2009 -0500
@@ -425,9 +425,6 @@
         def fwarn(f, msg):
             self._ui.warn('%s: %s\n' % (self.pathto(f), msg))
             return False
-        badfn = fwarn
-        if hasattr(match, 'bad'):
-            badfn = match.bad
 
         def badtype(f, mode):
             kind = _('unknown')
@@ -450,6 +447,7 @@
             dirignore = util.always
 
         matchfn = match.matchfn
+        badfn = match.bad
         dmap = self._map
         normpath = util.normpath
         normalize = self.normalize