Mercurial temporary file nomenclature

Nicolas Dumazet nicdumz at gmail.com
Mon Apr 12 18:55:05 CDT 2010


Hello,

2010/4/13 Dirkjan Ochtman <dirkjan at ochtman.nl>:
>
> So apparently this even happens without inotify?

Yep, it's a checkexec bit, and always happens.
The only difference is that since this is done by the inotify daemon,
in background, you can watch by yourself the files popping up if you
list the directory contents before the termination of the first
dirstate.status() call that is made by the daemon on inotify startup.
You notice it because when using inotify you have terminal control,
but in reality any hg call accessing dirstate's status will create
those files for a short period of time.

The "marvel" of inotify should however mean that _less_
dirstate.status calls are made (as the daemon is watching file system
changes, and is, to a certain extent, guessing for you the dirstate
changes). A side effect being that with inotify, those temporary file
creations should happen less often.

Cheers :)

> Cheers,
>
> Dirkjan
>



-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial mailing list