[PATCH] largefiles: convert addlargefiles() to vfs
Augie Fackler
raf at durin42.com
Tue Jan 6 10:15:17 CST 2015
On Fri, Jan 02, 2015 at 11:38:47PM -0500, Matt Harbison wrote:
> # 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
queued, thanks
>
> 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:
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list