largefiles: replace invocation of os.path module by vfs in reposetup.py
authorliscju <piotr.listkiewicz@gmail.com>
Sat, 19 Mar 2016 15:31:13 +0100
changeset 28716 5c14af475f61
parent 28715 a7f7b7acf489
child 28717 c5f212c8ad78
largefiles: replace invocation of os.path module by vfs in reposetup.py This commit is part of bigger effort described in 'Windows UTF-8' plan.
hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Sat Mar 19 14:50:40 2016 +0100
+++ b/hgext/largefiles/reposetup.py	Sat Mar 19 15:31:13 2016 +0100
@@ -8,7 +8,6 @@
 
 '''setup for largefiles repositories: reposetup'''
 import copy
-import os
 
 from mercurial import error, match as match_, error
 from mercurial.i18n import _
@@ -305,7 +304,7 @@
                         _('file "%s" is a largefile standin') % f,
                         hint=('commit the largefile itself instead'))
                 # Scan directories
-                if os.path.isdir(self.wjoin(f)):
+                if self.wvfs.isdir(f):
                     dirs.append(f)
                 else:
                     regulars.append(f)