[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cherrypicking not working merging

From: vinay i <vinay.indresh_at_gmail.com>
Date: Tue, 4 Nov 2008 23:22:30 +0530

Hi All

I am facing issues when I am trying to cherry pick changes to be merged. I
followed the procedure given at
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.advanced.html.

svn --version
svn, version 1.5.2 (r32768)

Brief explanation:
=============
1. Changes are made on trunk from revisions 37715 to 37720.

2. Assume a bug is found on the release branch.

3. I fix the bug in the main trunk in revision 37721.

4. Now, I need to merge the changes which went into 37721 to my release
branch (and not changes from 37715 to 37720).

5. I checked out the release branch. Now I need to merge changes that went
into 37721 for check.pl

   svn info check.pl
   Path: check.pl
   Name: check.pl
   URL:
svn+ssh://host/repository/base_svn/branches/rel_20080821_branch/script/check.pl

   Repository Root: svn+ssh://host/repository/base_svn
   Repository UUID: 72949e68-6ddc-11dd-9082-94faabab265b
   Revision: 37721
   Node Kind: file
   Schedule: normal
   Last Changed Author: xyz
   Last Changed Rev: 35994
   Last Changed Date: 2008-06-20 15:05:23 +0530 (Fri, 20 Jun 2008)
   Text Last Updated: 2008-06-20 15:05:23 +0530 (Fri, 20 Jun 2008)
   Checksum: 092e639b437fde1310b6e61caca08b33

6. When I run diff between 37721 and the release version the below is
displayed. It says only "# change5" was added in revision 37721.

svn diff -c 37721 svn+ssh://host/repository/base_svn/trunk/script/check.pl
Index: check.pl
===================================================================
--- check.pl (revision 37720)
+++ check.pl (revision 37721)
@@ -155,3 +155,4 @@
 # change2
 # change3
 # change4
+# change5

7. But when I performed the merge it merged all the changes from 37715 to
37721 instead of just 37721.
svn merge -c 37721 svn+ssh://host/repository/base_svn/trunk/script/check.pl

<<<<<<< .working
=======

#Testing
# change1
# change2
# change3
# change4
# change5
>>>>>>> .merge-right.r37721

Please correct me if the procedure followed is wrong.

Thanks
Vinay
Received on 2008-11-04 18:53:12 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.