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

Re: A question on merge

From: Ding Honghui <hhding.gnu_at_gmail.com>
Date: Mon, 31 Mar 2008 14:53:49 +0800

The question is *I forget which version I copied to branch*

Should I go over the log to find it?

and If the log is NULL, the things is worse..

Ryan Schmidt wrote:
> On Mar 30, 2008, at 21:43, Ding Honghui wrote:
>
>> At version 9, I copy trunk code as branch and develop both in branch and
>> trunk. Now, I want merge the branch code to trunk and I forgot which
>> version I copied to. Then how can I merge the change back to trunk?
>
> At *revision* 9, you copied trunk to a new branch. Hopefully, that's all
> you did in revision 9 -- that is, hopefully you didn't copy trunk to a
> branch *and* make changes in the branch in revision 9.
>
> Now you've made changes in the branch and let's assume the HEAD of the
> repository is now 20 and you want to merge the branch back into the
> trunk. Get a working copy of trunk, and merge revisions 9 thru 20 of the
> branch to the trunk, like this:
>
> svn merge -r 9:20 url://to/your/branch
>
> Resolve any conflicts, test to make sure everything works, then you can
> commit the change:
>
> svn ci -m "Merging r9:20 of my branch into trunk"
>
>

-- 
Best Regards,
 Ding Honghui
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-31 09:05:59 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.