SVN: how to recreate a directory that was created but not yet installed

Here is a little problem SVN:

I create the directory locally:

$ svn mkdir output
A         output

I accidentally delete it:

rm -rf output

Now, how do I recreate it? I tried this:

$ svn mkdir output
svn: 'output' is already under version control

And this:

$ svn revert output
Reverted 'output'

But he still does not exist.

UPDATE: People suggest that a simple simple mkdir outputshould have been enough after it was deleted. But in my version of SVN this is not so. It ignores the fact that there is a directory output/.svnthat I also deleted. Just mkdir output, of course, will not return this. So, SVN must somehow participate in the creation of this directory output. (I am using SVN 1.4.6.)

+3
source share
4 answers

SVN:

$  svn rm --force output
svn: 'output' does not exist

:

$ svn mkdir output 
A         output

svn remove . , , .

SVN, .

+7

mkdir output .

+2

mkdir.

svn mkdir , svn add, .

, , , - "", . , revert , svn mkdir , Subversion , ( rm Subversion).

+1

- , SVN , .

, ,

  • SVN, 'output' SVN - ,
  • "" . SVN .
  • SVN, 'output' SVN - ​​, !
  • SVN, "output" - , " "

...

mkdir output

... as your third step, everything would be fine - the directory was deleted using the file system, so it needs to be restored using the file system. There is no reason for SVN to be involved in the recovery, and as you discovered, trying to do this simply confuses the issues.

NTN

+1
source

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


All Articles