Mercurial > hg-stable
diff hgext/largefiles/overrides.py @ 15369:b4ea79f88268 stable
largefiles: bugfix for symlink handling with testcase
The code was using the size of a symlink's target, thus wrongly making symlinks
to large files into largefiles themselves. This can be demonstrated by
deleting the symlink and then doing an 'hg up' or 'hg up -C' to restore the
symlink.
author | Eli Carter <eli.carter@tektronix.com> |
---|---|
date | Wed, 26 Oct 2011 13:48:33 -0500 |
parents | 19368c54a774 |
children | 155d0f8fb7e5 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed Oct 26 12:56:27 2011 -0500 +++ b/hgext/largefiles/overrides.py Wed Oct 26 13:48:33 2011 -0500 @@ -87,7 +87,7 @@ if exact or not exists: abovemin = (lfsize and - os.path.getsize(repo.wjoin(f)) >= lfsize * 1024 * 1024) + os.lstat(repo.wjoin(f)).st_size >= lfsize * 1024 * 1024) if large or abovemin or (lfmatcher and lfmatcher(f)): lfnames.append(f) if ui.verbose or not exact: