hgext/largefiles/reposetup.py
changeset 35084 61888bd0b300
parent 34344 ac0cd81e2f83
child 41676 0531dff73d0b
--- a/hgext/largefiles/reposetup.py	Wed Nov 15 01:07:42 2017 -0800
+++ b/hgext/largefiles/reposetup.py	Wed Nov 15 01:07:42 2017 -0800
@@ -138,7 +138,7 @@
                         sf = lfutil.standin(f)
                         if sf in dirstate:
                             newfiles.append(sf)
-                        elif sf in dirstate.dirs():
+                        elif dirstate.hasdir(sf):
                             # Directory entries could be regular or
                             # standin, check both
                             newfiles.extend((f, sf))
@@ -156,7 +156,7 @@
                     def sfindirstate(f):
                         sf = lfutil.standin(f)
                         dirstate = self.dirstate
-                        return sf in dirstate or sf in dirstate.dirs()
+                        return sf in dirstate or dirstate.hasdir(sf)
 
                     match._files = [f for f in match._files
                                     if sfindirstate(f)]