[PATCH STABLE v2] store: remove zero size files from fncache

Johan Samyn johan.samyn at gmail.com
Thu Mar 4 14:19:57 CST 2010


2010/3/3 Adrian Buehlmann <adrian at cadifra.com>:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1267641462 -3600
> # Branch stable
> # Node ID 1ff171d92a179e864872f909faed7a9483e1c827
> # Parent  d5bd1beff794461611bb37999a79bd110c88d008
> store: remove zero size files from fncache
>
> 'hg strip' truncates files in the store to zero if those files were added in a
> stripped changeset.
>
> These zero-size files should be treated the same as nonexistent fncache entries,
> i.e. not be yielded by store.fncachestore.datafiles and removed from the fncache
> file.
>
> Generally, datafiles does not return zero-size files anymore for all store kinds.
>
> diff --git a/mercurial/store.py b/mercurial/store.py
> --- a/mercurial/store.py
> +++ b/mercurial/store.py

Is this patch a solution to what I reported in the thread below too ?
http://article.gmane.org/gmane.comp.version-control.mercurial.general/18345
Johan


More information about the Mercurial-devel mailing list