SVN版本回滚问题 [英] SVN Version Rollback Question

查看:21
本文介绍了SVN版本回滚问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 SVN (TortoiseSVN) 并且经常遇到以下情况:

I'm using SVN (TortoiseSVN) and often came into the following situation:

我想放弃自特定(旧)修订版以来的任何更改,并将所有文件转回此特定(旧)版本.然后我想进一步工作,就好像这个特定的(旧)修订是最新的一样,即我希望能够将特定的旧修订作为新修订提交.

I wanted to discard any changes since a specific (old) revision and turn all files back to this specific (old) version. Then I wanted to work further as if this specific (old) revision was the newest one, i.e. I wanted to be able to commit the specific old revision as a new revision.

我为这个问题找到了几个解决方案(例如 stackoverflow.com/questions/402159/roll-back-or-revert-entire-svn-repository-to-an-older-revision 或 rustyrazorblade.com/2007/04/how-to-roll-back-commits-to-an-earlier-version-of-a-repository-in-svn/).

I found several solutions for this problem (for example stackoverflow.com/questions/402159/roll-back-or-revert-entire-svn-repository-to-an-older-revision or rustyrazorblade.com/2007/04/how-to-roll-back-commits-to-an-earlier-version-of-a-repository-in-svn/).

但是,我想知道是否有一种简单的方法可以回滚到特定版本.我认为版本控制对这些事情有好处(或者我误解了什么?).

However, I wonder if there is a simple way to roll back to a specific revision. I thought version control is just good for such things (or am I misunderstanding something?).

是否有简单的命令/按钮/等.将我的本地存储库更新为旧版本并声明它是最新版本?

Is there a simple command/button/etc. that takes an updates my local repository to an old revision and declares it to be the newest one?

由于我认为没有内置"功能可以执行此操作,因此我想知道是什么原因导致开发人员决定不集成此功能.有人知道吗?

Since I suppose that there is no "built-in" function to do this, I wanted to know what reason lead the developers to the decision not to integrate this feature. Does anybody know this?

推荐答案

出于某种原因,SVN 人员决定将其称为反向合并".在 TortoiseSVN 合并对话框中,选中反向合并框,并确保修订框显示类似于 HEAD-324(其中 324 是您要返回的版本).

For whatever reason, the SVN folk decided to refer to this as a "Reverse Merge." In the TortoiseSVN Merge dialog, check the Reverse Merge box, and make sure the revisions box reads something like HEAD-324 (where 324 is the version you're going back to).

这篇关于SVN版本回滚问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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