bzr-svn tests on Windows
jelmer at samba.org
Mon Jun 22 02:34:15 BST 2009
Alexander Belchenko wrote:
> Jelmer Vernooij пишет:
>> Alexander Belchenko wrote:
>>> Jelmer Vernooij пишет:
>>>> There's a few issues remaining now, all caused by the fact that you
>>>> can't remove a file that's still in use on Windows. Any help getting
>>>> this fixed would be much appreciated.
>>> To fix this problem you have to use own class to open files.
>>> Simple answer is using Win32 API CreateFile() with flag FILE_SHARE_DELETE,
>>> Such implementation already exists in hg codebase, see class posixfile_nt in util_win32.py module
>> I can't, these files are all opened from inside of the Subversion
>> library so I have no control over what flags are used when opening them.
> So, don't delete files currently opened by svn. Why you need delete them?
I'm not deleting them, it's the cleanup in the Bazaar testsuite (which
deletes the working directory created on the filesystem for each test).
More information about the bazaar