Understanding dirstate.granularity

Adrian Buehlmann adrian at cadifra.com
Fri Sep 25 15:54:30 CDT 2009


On 25.09.2009 22:27, Greg Ward wrote:
> On Thu, Sep 24, 2009 at 4:53 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> In practice, setting it to anything else than 1 sec
>> doesn't make much sense.
>>
>> Setting it to 0 is in fact dangerous and reintroduces the
>> problem for what this setting was invented in the first
>> place.
> 
> That's what I was looking for: thanks!  Nudge nudge: that's the sort
> of useful, practical advice that belongs in the documentation.

Um. I'd prefer not.

> (Of course, that means we'll have a documented config setting whose
> documentation is effectively, "don't change this setting".  So maybe
> we should just remove dirstate.granularity instead?)

Or leave it undocumented, as a tweaking back door for the case that
someone comes up with a real need for granularity != 1.

I would recommend to consider the setting deprecated until then.

I was already astonished enough that you even asked about it.


More information about the Mercurial-devel mailing list