1

For some reason, I am unable to rename folders containing local svn repositories I have created. When I do this through Total Commander I get an error:

Error: Cannot write D:\newname
Please remove the write protection

I have checked the process explorer and it seems that TSVNCache.exe is the culprit. The svn forums are quite inactive so this is my best shot at getting a solution. Thanks in advance for your help.

EylM
  • 5,196
  • 2
  • 13
  • 24
user32882
  • 3,135
  • 2
  • 20
  • 47

1 Answers1

1

I think I found the problem thanks to this link. One must kill the cache using TortoiseSVN (which is the client I am using).

In a Windows Explorer Window, right-click on any file, then go to TortioseSVN->Settings->Icon Overlays->Status Cache and set it to None.

tsvncache.exe will immediately exit and not run again.

Very pretentious of Tortoise to think that they are entitled to lock down folder renaming on behalf of the user.

user32882
  • 3,135
  • 2
  • 20
  • 47
  • We don't rename folders very often, and folder lock is just side effect of how Windows function `FindFirstChangeNotification` works. It's not like TortoiseSVN team decided "let's lock these folder and annoy all users". – Dialecticus Jul 19 '19 at 08:58
  • Probably not, but precisely the kind of thinking that encourages users to go for git... – user32882 Jul 19 '19 at 09:17
  • Don't confuse versioning control system (svn vs git) with Windows shell implementation of the one. There is a TortoiseGit shell extension for git, and it also [locks the folder](https://stackoverflow.com/q/16773257) if status cache is set to default. – Dialecticus Jul 19 '19 at 09:45
  • I see.... well then perhaps the default in this case should be to not lock the folder – user32882 Jul 19 '19 at 10:39
  • There must be something else going on in your PC. I copy, move and rename working copies all the time and I rarely have issues. Perhaps you have an IDE, a web server or an antivirus that keeps file open :-? – Álvaro González Jul 23 '19 at 17:32