svn - merging two subversion branches -


i found conflicting procedures:

subversion merging

  svn checkout http://a.b.c/bldtest1   cd bldtest1   svn merge -r45:50 http://a.b.c/bldtest2   svn merge -r53:55 http://a.b.c/bldtest2   svn ci -m "revision 45:50 , 53:55 merged"  

merge between 2 branches in subversion

$ svn merge -r 127:240 svn+ssh://svn.myproject.org/svn/trunk . 

which 1 of these right 1 ? opposite of each other. provided find set of revisions merged :

svn log --verbose --stop-on-copy  branch1 > log.txt 

so in order merge branch1 branch2, we:

1. svn co branch1 3. cd branch1 4. svn merge -r xx:yy branch2  

or

1. svn co branch1 2. svn co branch2 3. cd branch2 4. svn merge -r xx:yy branch1 . 

these procedures are not conflicted: in first sample default target "." omitted

in order merge branch1 branch2

you have to:

read , understand svn book (link provided sameer)

use correct way of merging

svn co url/to/branch2 cd branch2 svn merge -r xx:yy url/to/branch1 

and, btw, cherry-pick merging isn't best merging in world


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -