svn - Merging Subversion Branches -
just asking simple question. best way merge 2 subversion branches together?
i wish merge branch name 3661
branch name 2011-01-17
3661
has revision code of 16658
2011-01-17
has revision code of 16613
this how (i use command line)
(1) revision of 3661
when branch created this
svn log --verbose --stop-on-copy http://url/to/branch/3661
take smallest revision output. let's it's 911
(2) checkout latest of branch 2011-01-17
, , run in main directory. show conflicts , updates won't anything.
svn merge --dry-run -r 911:head http://url/to/branch/3661
(3) if ok changes actual merge
svn merge -r 911:head http://url/to/branch/3661
nothing committed on server yet. it's local copy merged. may want fix conflicted file now.
(4) if want persist merge on server commit changed files doing this
svn commit -m "merged 3661 changes 2011-01-17"
hopefully helps. may want see chapter of red book http://svnbook.red-bean.com/en/1.0/ch04s04.html
also, need command line svn client. can download subversion's website
Comments
Post a Comment