开发者

How to svn-merge a directory into a branch where it originally didn't exist

Suppose the following structure on an svn server:

-svn-|
     |-trunk --- |
     |           | - dirA
     |           | - dirB
     |
     |-branches -|
                 | - foo - |
                           | - dirA

At a revision X, the foo branch was created from the trunk. Some time later at revision Y, directory dirB was created in the trunk. Now, at revision Z, i want to integrate dirB (rev Z) into the foo branch.

I tried:

md dirB
svn add dirB
svn merge --dry-run --force ssh://se开发者_StackOverflow中文版rver/svn/trunk/dirB dirB

and

svn merge -rY:Z--dry-run --force ssh://server/svn/trunk/dirB dirB

and also

cd dirB
svn merge --dry-run --force ssh://server/svn/trunk/dirB .

Everytime I get

Summary of conflicts:
  Tree conflicts: 34

How to do this merge?


Make sure that you're in working copy dirA

cd branches/foo/dirA

Merge dirB into foo/dirA

svn merge ssh://server/svn/trunk/dirB .


EDIT:
Branches are created using svn cp:

svn cp ssh://server/svn/trunk/dirB ssh://server/svn/branches/foo/dirB -m"dirB branch created"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜