changeset 28716:5c14af475f61

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.
author liscju <piotr.listkiewicz@gmail.com>
date Sat, 19 Mar 2016 15:31:13 +0100
parents a7f7b7acf489
children c5f212c8ad78
files hgext/largefiles/reposetup.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)