Help renaming svn repository
Posted
by rascher
on Stack Overflow
See other posts from Stack Overflow
or by rascher
Published on 2010-03-15T04:25:43Z
Indexed on
2010/03/15
4:29 UTC
Read the original article
Hit count: 199
Here is the deal:
I created an SVN repository, say, foo. It is at
http://www.example.com/foo
.Then I did an svn checkout.
I made some updates and changes to my local copy of the code over the week. I haven't committed yet.
I realized that I wanted to rename the repository. So I did this:
svn copy http://example.com/foo
http://example.com/bar
svn delete http://example.com/foo
I finish my changes (and local svn still thinks I'm working under "foo".)
svn commit
fails because the repo has been renamed.I try to use
svn switch --relocate
but it yells at me because svn is awful.I try using the script here to replace "foo" with "bar" in my billion .svn/ folders.
This replace is taking a long time. I wonder if something hung? Or maybe sshfs failed? I kill it. Ctrl-C.
I look and see that half my files have "foo" and the others have "bar" in the URLs in the sundry .svn/ folders.
All I want to do is commit my files with the new name. I could re-checkout the branch, but then I have no way to remember which files I changed, which is why I was using version control in the first place, and svn is so godawful at moving and renaming things.
What do I need to do to:
Have a "clean" copy of my "bar" svn branch? and, most importantly:
Commit the changes I made?
© Stack Overflow or respective owner