Create an SVN branch from a specific tag and merge into the trunk

lately we switched to svn.

I have two questions here,

  • we released and created the tag TAG1. after a week, a production problem occurred, and the prod database was TAG1, later on the torso we made several changes that we do not want to put into production, so the best way here is to take the code from TAG1 and make the changes, we exported the data from the tag, but are unable commit, and we don’t want to fix this tag, it is necessary that a separate branch after the release creates another tag (TAG2) based on this branch, and then finally merged with Trunk. Merging with the trunk is not a problem. the problem here is how to create a tag-based code branch and make changes?

  • We have releases every two months, all these changes are made directly on the trunk, after the release we create a TAG and continue for the next version. the other end, we are going to start a new XYZ project, which will be released at the end of the year (the date has not yet been determined), here this branch should create from the previous TAG not from the trunk, because it has already made some changes in the trunk for the upcoming version, how can we do this to reach?

Thanks KV

+5
source share
2 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
+13
source
Sections and Tags

is the same thing: a cheap copy from one URL and version to another URL.

See http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.ref.svn.c.copy for a link to the copy command. You just need to:

svn copy http://svn.foo.com/project/tags/TAG1 http://svn.foo.com/project/branches/maintenance-TAG1
+4
source

All Articles