[PATCH 4 of 5] branchcache: add debug output whenever cache files use truncate

Gregory Szorc gregory.szorc at gmail.com
Wed Jan 14 21:13:15 CST 2015


On Wed, Jan 14, 2015 at 3:24 PM, Mads Kiilerich <mads at kiilerich.com> wrote:

> # HG changeset patch
> # User Mads Kiilerich <madski at unity3d.com>
> # Date 1421194526 -3600
> #      Wed Jan 14 01:15:26 2015 +0100
> # Node ID 563e3b1a9c9f5efc7d07b1ae60cc45f700176989
> # Parent  82624926786279b4c2ada666151015a82608b0b3
> branchcache: add debug output whenever cache files use truncate
>
> The cache files are usually append only but will automatically be
> truncated and
> recover in exceptional situations. Add a debug notice when such exceptional
> situations are encountered.
>
>
What do you think about adding blackbox logging, similar to branch and tags
caches? See 9ea132aee96c and  05cfcecb3aef. I've found these after-the-fact
blackbox log events to be invaluable when debugging "random hangs" because
cache operations are (by their very nature) hard to catch in the act.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150114/3fcb3958/attachment.html>


More information about the Mercurial-devel mailing list