Deleted a file that was added to TortoiseSVN but was not committed

I am using TortoiseSVN.

In my project, I created a directory, placed files on it, added everything to the source SVN element, but have not yet added it to the repository. It looked like this:

/root_project_dir
-> .svn
-> dir1
  -> .svn
-> added_dir
  -> .svn
  -> subdir

But I mistakenly deleted it with the usual removal of Windows. Now, if I create the directory again, I cannot add it to TortoiseSVN, it says:

"Directory" ... / added _dir / .svn "containing the administration area of ​​the working copy is missing. Run the" Cleanup "command.

Ok, but when I run the Cleanup command, I get the following:

"... / added_dir" is not a working copy directory.

I tried to delete the directory, perform a cleanup, create it again, but could not succeed.

dir ?

+3
4

: "root_project_dir" ( , ?) "".

+6

svn revert .

+2

On top of my head

svn revert --force <dirname>
+1
source

Try to create a directory without using the SVN Add command. Then lock it.

0
source

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


All Articles