Here’s a little SVN problem:
I create a directory locally:
$ svn mkdir output A output
I accidentally remove 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 it’s still not there.
UPDATE: People are suggesting that a simple mkdir output should have been enough after removing it. But in my SVN version that is not the case. It ignores the fact that there is an output/.svn directory that I also removed. Just mkdir output won’t bring that one back, of course. So, somehow, SVN has to be involved in the recreation of that output directory. (I’m using SVN 1.4.6.)
Remove it officially in SVN:
Then create it again:
That output from
svn removeabove is a bit misleading. I thought the remove had failed, and it wouldn’t change anything.It’s not the most intuitive approach here by SVN, but this way it works.