Marc
Marc

Reputation: 9282

How to rename an SVN branch through all revisions (history)?

How can I rename a branch in SVN through all revisions so that it looks like it always had the new name when checking the log?
I understand that there may be no SVN client command for this, but is there anything I could do on the server?

The reason for this is that I'd like to move to git and git-svn clone doesn't like a branch name like "Fix 1, 2 and 3" (I guess because of the comma).

Upvotes: 1

Views: 579

Answers (2)

Dmitry Pavlenko
Dmitry Pavlenko

Reputation: 8958

To do that you may use "svnadmin dump" + edit dump (with own script or have a look at svndumptool.py) + "svnadmin load" combination. But this approach is not recommended, because you can get broken svn:mergeinfo and potentially may corrupt your repository.

So would also vote for "svn move" approach.

Upvotes: 0

Tokytok
Tokytok

Reputation: 338

svn move last_branch new_branch

Upvotes: 2

Related Questions