Mercurial > hg-stable
diff hgext/largefiles/overrides.py @ 23733:86810cd85eb8
largefiles: convert addlargefiles() to vfs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 31 Dec 2014 18:18:56 -0500 |
parents | d944492445fa |
children | f2893cd8d1e5 |
line wrap: on
line diff
--- 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: