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

RE: Merging branch into trunk

From: <Chris.Fouts_at_qimonda.com>
Date: 2006-12-20 15:14:07 CET

Ah, you must NOT have created tags when you branched. If done
correctly, you should've

- Created a tag on the branch to signify when you branched
> svn cp //repos/project/branches/SC999
- Do development on the branch, so now there's a delta between branch
  and trunk code
- Commit changes to branch
- Merge delta into trunk
> cd /trunk_workspace
> svn merge //repos/project/tags/SC999-trunk
> (resolve conflicts)
> svn commit

What you can do is make a new branch, tag the branch as above, then
"manually" copy the files from your "other branch workspace" into this
new branch workspace, commit, then merge.

You also need to tag the trunk so you can merge trunk deltas into
your branch
> svn cp //repos/project/trunk //repos/project/tags/trunk-branchname

Read more info on branches and tags.

>-----Original Message-----
>From: Steve.Nelson@uk.delarue.com [mailto:Steve.Nelson@uk.delarue.com]
>Sent: Wednesday, December 20, 2006 7:58 AM
>To: users@subversion.tigris.org
>Subject: Merging branch into trunk
>From reading the svn book, it seems that merging a branch back
>into the trunk takes the form of providing svn merge with
>three arguments - the original revision, the new revision, and
>the current working copy.
>I've created a branch /branches/SC999 and copied a program
>into it, and made and committed changes to foo.p.
>If I want to merge /branches// into /trunk, I try, from
>within my working copy:
>svn merge /trunk@23 /branches/SC999@26
>After this, nothing seems to have changed - it seems no diff
>took place, and no change.
>I've tried various alternatives:
>svn merge https://svntest/repos/devrep/dlr/trunk/dxzz00em0001.p@23
>svn merge -r 23:26 https://svntest/repos/devrep/dlr/trunk
>All seem to have no effect. What am I doing wrong?
>Steve Nelson
>Technical Analyst
>De La Rue plc
>De La Rue House, Jays Close
>Basingstoke, Hampshire, RG22 4BS
>(T) +44 (0)1256 605179
>(M) +44 7764 286 356
>(F) +44 (0)1256 605094
>This e-mail and any files attached are strictly confidential,
>may be legally privileged and are intended solely for the
>addressee. If you are not the intended recipient, note that
>any disclosure, copying, distribution, or use of the contents
>of this message and attachments is strictly prohibited. Please
>notify the sender immediately by return email, phone or fax
>and then delete the e-mail and any attachments immediately.
>The views and or opinions expressed in this e-mail are not
>necessarily the views of De La Rue plc or any of its
>subsidiaries and the De La Rue Group of companies, their
>directors, officers and employees make no representation about
>and accept no liability for its accuracy or completeness.
>Please ensure you have adequate virus protection before you
>open any attachment as the De La Rue Group of companies do not
>accept liability for any viruses.
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 20 15:14:59 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.