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

Re: Question about applying patches

From: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Tue, 24 Jun 2014 10:08:46 -0500

On Mon, Jun 23, 2014 at 10:37 PM, Duncan Murdoch
<murdoch.duncan_at_gmail.com> wrote:
> I think the official svn way to do it is by branching, but the trouble
> with that is that merging other people's trunk changes into the branch
> can be tricky unless done very frequently, and it's a lot of work if
> done frequently.

I really think this is the best method for you to use anyway.

You're worried about merging trunk changes into your branch being
tricky. But if this merge is tricky, then applying your patch onto
trunk will be equally as tricky.

If you don't want to merge from trunk to your branch, then don't. The
only real reason to do that, is to make your final merge from branch
back to trunk easier. If it makes your life harder, then don't do it.

Your final merge from your branch back to trunk will be no more
difficult than trying to re-apply your patch from some earlier point
on trunk. And it should be far less error-prone. With a real merge,
you get the benefit of using the history in a 3-way merge. You retain
the ability to revert your changes and start over. You gain the
ability to merge one or two revisions at a time, rather than one giant
merge, if it makes the merge easier. With branching, you can commit
any and all of your changes as soon as you are at a stopping point,
regardless of whether or not it works, then you can "svn switch" your
working copy to take a look at an unmodified trunk.

I really cannot think of any advantages of using a patch if branching
is a possibility. The only reason I know of for using patches is if
you do not have write access, or if some change management process
prevents you from committing anything right now.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3083825

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-06-24 17:09:20 CEST

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

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