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

Filed under:
|

Here is the deal:

  1. I created an SVN repository, say, foo. It is at http://www.example.com/foo.

  2. Then I did an svn checkout.

  3. I made some updates and changes to my local copy of the code over the week. I haven't committed yet.

  4. 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

  1. I finish my changes (and local svn still thinks I'm working under "foo".) svn commit fails because the repo has been renamed.

  2. I try to use svn switch --relocate but it yells at me because svn is awful.

  3. I try using the script here to replace "foo" with "bar" in my billion .svn/ folders.

  4. This replace is taking a long time. I wonder if something hung? Or maybe sshfs failed? I kill it. Ctrl-C.

  5. 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:

  1. Have a "clean" copy of my "bar" svn branch? and, most importantly:

  2. Commit the changes I made?

© Stack Overflow or respective owner

Related posts about svn

Related posts about rename