Subversion: Get rid of the .svn version directory.

I don’t know exactly how this happened, but I have a version of ".svn" in my repository. Do not ask me how this happened. If I tell svn to remove it, it does not want, since .svn is a reserved argument.

Strength does not work.

Any ideas?

EDIT: Ok, I solved it svn rmin the parent directory and adding it back.

However, if someone knows a pure solution to this, he will be highly appreciated.

UPDATE:

svn delete <repo url>/foo/.svn

Does not work. I seem to have tried every combination of commands and arguments. I’m sure that if it’s doable, it’s a hack. I know the method: dump -> change the dump using the tool -> reimport but it is as scary as hell. This is not git, if you delete the svn repository, you / it remains hacked.

+5
2

"svn rm" URL-, , , ( svn 1.6.5, Mac OS X):

$ svn ls -R file:///xxx/testrepo
foo/
foo/.svn/
foo/.svn/baz
foo/bar/
foo/bar/baz

$ svn rm -m 'Yes it works.' file:///xxx/testrepo/foo/.svn
Committed revision 6.

$ svn ls -R file:///xxx/testrepo
foo/
foo/bar/
foo/bar/baz

"svn mv", :

$ svn ls -R file:///xxx/testrepo
foo/
foo/.svn/
foo/.svn/baz
foo/bar/
foo/bar/baz

$ svn mv -m 'Rename works too.' file:///xxx/testrepo/foo/.svn \
    file:///xxx/testrepo/foo/dotsvn
Committed revision 8.

$ svn ls -R file:///xxx/testrepo
foo/
foo/bar/
foo/bar/baz
foo/dotsvn/
foo/dotsvn/baz

PS. ".svn" svn- : svn cp svn mv URL-.

+2

svn delete , ,

svn rm -m "removing checked-in .svn" http://myserver/svn/repo/trunk/dir/.svn

svn update, .

0

All Articles