开发者

svn:externals problems during merge

开发者 https://www.devze.com 2023-02-11 07:48 出处:网络
let\'s consider following SVN stucture: * /Project_1/trunk/1.txt * /Project_2/trunk/dir1 * 开发者_如何学Go/Project_2/trunk/dir2

let's consider following SVN stucture:

* /Project_1/trunk/1.txt

* /Project_2/trunk/dir1

* 开发者_如何学Go/Project_2/trunk/dir2

Let's assume following scenario which leeds to an error:

* You add svn:externals to /Project_2/trunk/dir1 and /Project_2/trunk/dir2 so it looks like this:

svn:externals ^/Project_1/trunk/1.txt 1.txt

* Branch Project_2/trunk to a new branch and make some changes there

* Merge changes from trunk to your branch

* Commit merged changes to branch <-- if failes!

The error message is something like this: Error: Cannot commit both '.....\1.txt' and

Error: '.....\1.txt' as they refer to the same URL


The real answer is: Never, ever do svn:externals to versioned folder and/or single file. Bind only to folders and place them insinde new, unversioned folders

0

精彩评论

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