# HG changeset patch # User Matt Harbison # Date 1420067936 18000 # Node ID 86810cd85eb85c15da72f55ae1e1dcc4ffc93d74 # Parent c51d6c043bb11e3795e6a6703ea2e10ca45e3649 largefiles: convert addlargefiles() to vfs diff -r c51d6c043bb1 -r 86810cd85eb8 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: