[PATCH 0 of 1] util.mktempcopy: eliminate pointless lstat / chmod calls on Windows

Adrian Buehlmann adrian at cadifra.com
Mon Jun 20 04:45:39 CDT 2011


Yeah, Windows again.

I know that we're already supposed to be on frosty feature-developer holidays, but
can we shave this pointless neckbeard for 1.9? (otherwise we have to walk around for
four more months with this thing..)

This would be two (pointless) filesystem calls less to worry about on the
Windows / Windows-shares / AV- / whatever front.

Note: util.mktempcopy is, for example, in the code paths that write caches, update
the dirstate and fncache files, or break up hardlinked files.

(For some mysterious unknown reasons I keep running into stuff like this right after
the code freezes. Sigh... )


More information about the Mercurial-devel mailing list