[PATCH] largefiles: convert addlargefiles() to vfs
Matt Harbison
mharbison72 at gmail.com
Sat Jan 3 04:38:47 UTC 2015
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1420067936 18000
# Wed Dec 31 18:18:56 2014 -0500
# Node ID 53d068e0c7cb0f85eb8923ed014255e001eb2cd4
# Parent 42908c3275c63b7d2d6c871094c1e2c8f7ba31c8
largefiles: convert addlargefiles() to vfs
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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:
More information about the Mercurial-devel
mailing list