Delete Tree and subversion

I am having a problem with a build script which does the following:

  1. Delete tree buildfolder
  2. Create buildfolder
  3. Subversion checkout
  4. build

The first time it runs, everything works. Subsequent times, the Delete tree action fails with error code 5 - access is denied.

The folder inherits permissions from its parent, and I have also verified manually, that "domain users" have full controll.

The Sysinternals filemon tool suggests that delete fails on the file ".svn\all-wcprops". The permissions on that file are the same: "domain users" have full control.

When deleting the folder using Windows Explorer, everything works fine.

The weird thing is that when I use subversion export instead of checkout, it works. But of course, a checkout doesn't create the .svn folders and subversion files.

I have tried a reboot to see if a different process should have the file open, but no success.

I am using "sliksvn" as the subversion tool.

Does anybody have any tips or suggestions?

Found the problem now. The file is read-only.

With the delete read only and hidden directories options, it works fine.

Hi Rasmus,

Thanks for letting us know how you resolved the issue.

Regards,
Paul.