Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create SVN branch from specific Tag and merge to trunk

Tags:

branch

svn

tags

recently we moved to svn.

I have two questions here,

  1. we had release and created tag TAG1. after a week there was a production issue and prod code base is TAG1, later on trunk we made several changes that we don't want to push to production, so the best way is here take code from TAG1 and do change, we have exported data from tag but not able to commit and we don't want to commit to that tag, need a separate branch after the release make another tag(TAG2) based on this branch then finally merge to Trunk. Merge to Trunk is not an issue. the issue is here how to create a branch from Tag based code and do commit changes?

  2. We have releases for every two months, all these changes made directly on trunk, after the release we create a TAG and continues for next release. other end, we are going to start a new project XYZ that will release at year end(date not yet decided), here, this branch needs to create from previous TAG not from trunk because already made some changes on trunk for up coming release, how we we can achieve it?.

Thanks KV

like image 966
KVB Avatar asked Jul 02 '12 16:07

KVB


People also ask

Can I create a branch from a tag in svn?

To create a branch or a tag in a Subversion repository, do the following: From the main menu, choose VCS | Subversion | Branch or Tag. Alternatively, select the source folder in the SVN Repositories tool window and choose the Branch or Tag command from the context menu.

How do I create a branch in trunk?

Creating a branch is very simple—you make a copy of your project tree in the repository using the svn copy command. Since your project's source code is rooted in the /calc/trunk directory, it's that directory that you'll copy. Where should the new copy live? Wherever you wish.


1 Answers

svn copy your.repo.URL/tags/your-tag-name your.repo.URL/branches/your-new-branch-name -m "message"

then to work on it

svn checkout your.repo.URL/branches/your-new-branch-name
like image 105
Doug Currie Avatar answered Oct 08 '22 00:10

Doug Currie