largefiles: convert addlargefiles() to vfs
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 31 Dec 2014 18:18:56 -0500
changeset 23733 86810cd85eb8
parent 23732 c51d6c043bb1
child 23735 b9d06fa10ef2
largefiles: convert addlargefiles() to vfs
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Sun Jan 04 01:29:07 2015 +0100
+++ b/hgext/largefiles/overrides.py	Wed Dec 31 18:18:56 2014 -0500
@@ -114,15 +114,13 @@
             continue
 
         if (exact or not exists) and not lfutil.isstandin(f):
-            wfile = repo.wjoin(f)
-
             # In case the file was removed previously, but not committed
             # (issue3507)
-            if not os.path.exists(wfile):
+            if not repo.wvfs.exists(f):
                 continue
 
             abovemin = (lfsize and
-                        os.lstat(wfile).st_size >= lfsize * 1024 * 1024)
+                        repo.wvfs.lstat(f).st_size >= lfsize * 1024 * 1024)
             if large or abovemin or (lfmatcher and lfmatcher(f)):
                 lfnames.append(f)
                 if ui.verbose or not exact: