简体   繁体   中英

svn merge with conflicts

So I have some branch that I want to merge into trunk. I used the following command:

svn merge -r N:HEAD ../trunk .

where N was obtained by:

svn log --stop-on-copy

This produces several conflicts (expected) and I choose postpone for each of them. Svn finally bails with:

svn: One or more conflicts were produced while merging r108047:109464 into
'.' --
resolve all conflicts and rerun the merge to apply the remaining
unmerged revisions

So I go through the conflicts one by one, manually fix the files, and issue svn resolved .

I'm thinking at this point that I can now re-run the exact same merge command, but when I do it shows no results, as if there is nothing left to merge. Compiling fails, because a ton of things aren't actually applied. I verify this with:

diff ../trunk .

And as expected there are tons of unapplied diffs (there are only a handful of things actually different in branch).

What an I doing wrong?

I may be wrong, but shouldn't your first parameter ..trunk be the URL of your branch instead? Look at this and check the sample code there to reintegrate branch to trunk . Seems like you merged the changes from trunk to your branch (if you were in the working copy of your branch), which is good before reintegrating the branch. But now you have to go to your trunk working copy and run the command to merge the branch to the trunk. Sorry if i'm mistaking, most time I use tortoises to deal with svn so I'm not that familiar with the commands.

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