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

Re: Converting a revision to a patch

From: Holger Stratmann <tigris_at_finch.de>
Date: Mon, 09 Mar 2009 01:09:00 +0100

Mark Wagner wrote:
>>> I've got a Subversion repository containing a set of changes I'm
>>> interested in (specifically, revision 189) and a version of the source
>>> code that isn't managed by Subversion. How would I go about
>>> converting r189 into a patch to apply to the non-managed code, or is
>> svn diff -c 189 $pathToUrl
>>
>> then use that to patch. at least i think that should do it..
>
> Thanks.
>
>>> there a better way to do this?
>> version everything.
>
> Got a time machine?
I think you can get one from Apple ;-) *scnr*

No seriously: It's never too late to put source code under version
control, is it?
What are you doing with the unmanaged copy and why do you need to apply
patches to it? Will you need any more patches in the future?

You could still create a branch - let's say it branches off at revision
99 (take one that makes some sense - this might be revision 1 if the
unmanaged code is older than your managed code) - and commit the
(formerly) unmanaged version there. VoilĂ , now it's managed :-)
The advantage? You can now merge revision 189 from trunk (or is that in
a branch as well?) to your new branch - you'll get some help with
conflict resolution, if you're using Subversion 1.5 or better, you get
merge tracking (just in case you need to merge more than this one
revision in the future) and of course, you'll get a history of
everything you're doing from now on... Unless revision 189 is trivial,
it might be nice to see *exactly* what happened later on...

HTH,

Holger

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1292505

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-09 01:10:10 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.