[PATCH 2 of 2] largefiles: replace invocation of os.path module by vfs in reposetup.py

liscju piotr.listkiewicz at gmail.com
Sat Mar 19 10:43:12 EDT 2016


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1458397873 -3600
#      Sat Mar 19 15:31:13 2016 +0100
# Node ID e22a8441a620456dad9adbfcd2d1afb4962b0ef9
# Parent  ed35b14adb5caf1a8261d7021e2b00a2862fb896
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.

diff -r ed35b14adb5c -r e22a8441a620 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
@@ -305,7 +305,7 @@ def reposetup(ui, repo):
                         _('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)


More information about the Mercurial-devel mailing list