Temporary file problem on Windows shares mounted from Linux

Wagner Bruna wagner.bruna+mercurial at gmail.com
Fri Sep 18 18:37:34 CDT 2009


Hello,

Running the following script on a Linux machine inside a mounted (with
cifs) Windows NT (yeah, I know...) share creates a file that can't be
deleted or renamed:

import mercurial.util
open('dirstate', 'w').write('teste\n')
mercurial.util.mktempcopy('dirstate')

Renaming (or even reading) it gives 'no such file' errors on Linux,
and 'access denied' on Windows machines (even at the host). But this
is version dependent: I can't reproduce it on Windows XP shares, or on
a Windows machine. Hg version is 1.3.1.

Thanks,
Wagner


More information about the Mercurial-devel mailing list