Problem with deleting .svn directories in Windows XP

I don't seem to have this problem on my home laptop with Windows XP, but then I don't work very much there.

On my working laptop with Windows XP, I have a problem deleting directories when it has directories containing .svn directories. When it eventually works, I have the same problem as in the basket. The pop-up window says: "Cannot delete the text database of the folder: the directory is not empty" or the missing database or other folder under .svn

This continued when I changed the configuration of TortoiseSVN to stop the TSVN caching process even after a system reboot.

A few attempts will eventually do this. But this is a huge annoyance, because there are other problems that I'm trying to fix, so I hope this is connected.

"Connected Backup PC" also works on a laptop, and the real problem is that cygwin commands do not always work. Therefore, I continue to think that point files and point directories have something to do with both issues and / or backups or other directory scanning processes. But I didn’t have enough ideas on what to try or how to identify the problem further.

+4
source share
7 answers

You can try a few things:

  • Since you often get this error, you can use handle.exe from sysinternals to check which process currently has open descriptors for the .svn\* directory. If handle utility tells you about a process, try stopping the process and then deleting directories.

  • Error when deleting from the recycle bin: in simple words, when a file is sent to the recycle bin after deletion, it is not actually deleted, and several manipulations are performed in the directory hierarchy (file system level) until the file is displayed while viewing the contents of the folder. So, if you can solve the problem mentioned in comment # 1, you probably won't get this error.

  • Cygwin command not working : Running the cygwin command on windows requires (in particular) cygwin1.dll , which, as you know, comes with other programs (for example: CopSsh, some version of svn clients, etc.), as well. If there is a mismatch in the version of cygwin1.dll , the cygwin commands will not work. Try to find cygwin1.dll on your computer and try to resolve version conflicts (if any).

+1
source

You do not need to reboot; just open the task manager and kill the TSVNCache.exe file.

It is also safe. It is designed in such a way that you can kill it, and it will automatically reboot if necessary.

(As a result of an automatic restart, note that viewing some SVN folders in Windows Explorer, File-Open dialogs, etc., may cause TSVNCache.exe to restart. Watch the task manager.)

Tortoise SVN is great, but I found that TSVNCache.exe can hold locks and interfere from time to time. (Sometimes justified, sometimes not). As a result, for some automated scripts that I run, I include commands to destroy TSVNCache.exe as part of the scripts so that it does not interfere. This is worth doing if you frequently perform an operation.

+1
source

Have you ever done mkpasswd and mkgroup for cygwin? If you use cygwin from the command line, you almost certainly have problems with file system permissions. and you have to read a little to fix it.

http://cygwin.com/cygwin-ug-net/ntsec.html

0
source

Try this answer from me. Although it is intended for TortioseGit instead of TortoiseSVN, the processing is the same:

  • disable status cache (i.e. do not allow TSVNCache.exe to access .svn folders continuously)
  • delete what you have to delete
  • enable status cache to get updated overlay again.
0
source

I just experienced this problem (or similar)

I am using a turtle 1.6.7

To fix this, I went to "Turtle Settings" from the tortoise context menu.

from there, select “Overlay Icons” in the tree widgets.

On the icon overlay page, I entered a path that annoyed me in the "exclusive paths:", and the turtle no longer holds this directory handle.

This is a directory that is often deleted by a process other than Windows Explorer.

0
source

Since what you are trying to do is export the repository from SVN, why not use the export functionality with TortoiseSVN. This removes all .svn directories from the generated "working copy". Cmdline: http://svnbook.red-bean.com/en/1.0/re10.html

0
source

If you want to delete all subfolders named .svn in windows then create a batch file with this content:

 for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *.svn') do ( rd /s /q "%%i" ) 

save it in the file del_All_Dot_SVN_Folders.cmd . Run it. Done.

Thanks http://www.axelscript.com/2008/03/11/delete-all-svn-files-in-windows/

Remember that the above code has .svn, while the code in the link has only * svn, so it’s better to have .svn, so that you don’t accidentally have an undesirable effect.

0
source

Source: https://habr.com/ru/post/1334708/


All Articles