Re: cherry picking without subversion
From: David Weintraub <qazwart_at_gmail.com>
Date: Sun, 10 Aug 2008 11:31:18 -0400
Merging is a bit more complex than that since Subversion does cherry picking.
Normally, in a merge, you diff the target, the source, and a base
However, in Subversion, you could merge some revisions, and not
Making things even more complex is that Subversion never really did
In most version control systems, you specify the source, and the
In Subversion revisions 1.4 and earlier, you didn't specify the base.
$ svn co http://.../.../.../branch #Checks out the branch as your
$ svn merge -r 6:11 http://.../.../.../trunk #Merges revisions 6 -
Since revision #5 is the base of the merge, you don't specify that
Subversion 1.5 makes everything much simpler since it tracks the
$ svn co http://.../.../.../branch #Checks out the branch as your
So, how do you do cherry picking without Subversion? You'd have to get
Then, you can use that modified "source" in the diff3 command.
-- David Weintraub qazwart_at_gmail.com On Fri, Aug 8, 2008 at 12:11 PM, Flo <sensorflo_at_gmail.com> wrote: > My final goal is that I can do the idea of 'cherry picking' also with > the version control system I am forced to use at my workplace - vss. I > have cygwin installed, so I have all the gnu tools like diff, diff3 > etc. > > As far as I understand, many svn diff/merge/update operations can also > be done using these gnu tools. E.g. "svn update myfile" is the same as > getting the base and the head revision of myfile and then do "diff3 > myfile base head". > > Now I am asking myself what I have to do to mimic svn merge. Anyone? > > Anyway, I don't even understand if svn merge has 3 or 4 input files. > > trunk --- 5---...---10---11 > | > branch \---...---15 > | > working X > > Say I want to merge the changeset 11 into my working copy which's base > is 15. Now does svn merge also look at the common anchestor 5? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-08-10 17:31:54 CEST |
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.