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

Re: creating a patch from multiple revisions

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-22 14:09:33 CEST

On Jun 21, 2006, at 20:51, Todd Stafford wrote:

> say I want to get a patch of rev 3, 4, 7, 9, and 14.
>
> svn checkout -r 2 repo/trunk (at lowest possible level)
> svn merge -r 2:3
> svn merge -r 3:4
> svn merge -r 6:7
> svn merge -r 8:9
> svn merge -r 13:14
> svn diff > patchfile
>
> So now the patchfile contains the changes made for the specific new
> functionality.

Note that the patchfile will not contain changes such as directory
additions or deletions, and I'm not sure how property changes would
be handled. Not sure how it would handle file deletions either. In
other words, it's probably great if you've only ever changed existing
files. As soon as you do more than that, "svn diff" doesn't show the
whole picture.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 22 14:11:53 2006

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.