开发者

svn merge - moved repository to a different server, and now getting 'has different repository root' messages

开发者 https://www.devze.com 2022-12-23 14:42 出处:网络
This is kind of similar to subversion merge - "has different repository root than" - but appears to be a very different cause (especially as the answer for that question didn\'t resolve my p

This is kind of similar to subversion merge - "has different repository root than" - but appears to be a very different cause (especially as the answer for that question didn't resolve my problem).

A while back, we swapped out the server where our SVN repositories are located - but we've been using an alias so that the old server name points to the new server. I've been getting in the habit where I will use the new server name wherever I ch开发者_开发问答eckout new working copies - but we having made changes to most of the current working copies as they are live websites.

Until now, this hasn't been a problem - except that this morning I merged in some changes from my development branch to a working copy I have of the release version and I got the message "file has different repository root" and the merge stops dead.

I know this is because I'm using the new server name when the development branch was updated via the old server name - but is there a simple way to fix this?

Or if not a simple way - is there a well-documented way to fix this?


Have you tried svn switch --relocate on your working copy?

0

精彩评论

暂无评论...
验证码 换一张
取 消