Mercurial > hg > mercurial-source
changeset 23745:86810cd85eb8
largefiles: convert addlargefiles() to vfs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 31 Dec 2014 18:18:56 -0500 |
parents | c51d6c043bb1 |
children | b9d06fa10ef2 |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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: