简体   繁体   中英

Svn merge selected folders from trunk into branch

Folks,

A few weeks into our project at SVN revision, say, r100, we realized that we had to create a retrospective branch from revision, say, r10. The idea being that branch off of r10 will be released as V1.0 of the product and trunk will go on to become V2.0

The project directory structure now looks like:

/svn/trunk/ProjectX/
/svn/branches/ProjectX/v1

After creating the branch, we realized that the following folders from the trunk, HEAD revision need to be migrated into the branch:

/svn/trunk/ProjectX/commonStuff

I am trying to do this as follows:

$ cd /svn/branches/ProjectX/v1
$ cd mkdir commonStuff
$ svn add commonStuff
$ svn merge https://repo.address/svn/trunk/ProjectX/commonStuff ./commonStuff

When I run the above command, it usually results in tree conflicts. This baffles me because the commonStuff does not exist in my branch yet.

Am I doing something wrong? Is there a better way to create such a branch?

Thanks for your help and insights.

-Raj

I followed tips from This post . Since the target directory did not exist in the branch, I used svn copy instead of merge. My steps were:

$ svn copy https://repo.address/svn/trunk/ProjectX/commonStuff https://repo.address/svn/branches/ProjectX/v1/commonStuff
$ svn update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM