Comment 4 for bug 557585

Revision history for this message
anatoly techtonik (techtonik) wrote : Re: GitFile breaks dulwich on Windows

Does it worth the complication? As long as only one process has access - everything should be ok. For multiprocess access it may be better to lock the whole repository instead of separate files, check the lock for each write operation, keep the list of files opened for writing, so that lock can only be removed after all files are closed.

See http://trac.edgewall.org/browser/trunk/trac/util/__init__.py?rev=9436#L85 for a more thorough solution and also http://stackoverflow.com/questions/167414/is-an-atomic-file-rename-with-overwrite-possible-on-windows

I attach test logs for version with applied patch and for 0.4.1 which also fails on Windows. However, 0.4.1 doesn't leave hg-git repository empty.