从特定标签创建SVN分支并合并到主干 [英] Create SVN branch from specific Tag and merge to trunk

查看:72
本文介绍了从特定标签创建SVN分支并合并到主干的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们搬到了svn。

recently we moved to svn.

我在这里有两个问题,


  1. 我们已经发布并创建了标签TAG1。
    在一周后出现了生产问题,产品代码库为TAG1,后来在主干上我们进行了一些我们不想推送到生产的更改,因此最好的方法是从TAG1中获取代码并进行更改,我们已经从标签中导出了数据,但是无法提交,我们不想提交给该标签,发布后需要一个单独的分支,在该分支的基础上再创建一个标签(TAG2),然后最终合并到Trunk。合并到主干不是问题。问题是如何从基于Tag的代码创建分支并进行更改?

  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?

我们每两个月发布一次,所有这些更改直接在发行版之后,我们创建一个TAG,并继续进行下一个发行版。
的另一端,我们将开始一个新项目XYZ,该项目将于年底发布(日期尚未确定),在这里,该分支需要从以前的TAG创建而不是从中继创建,因为已经在中继上进行了一些更改

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?.

感谢
KV

Thanks KV

推荐答案

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

然后进行处理

svn checkout your.repo.URL/branches/your-new-branch-name

这篇关于从特定标签创建SVN分支并合并到主干的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆