在Eclipse中使用svn回滚坏的变化 [英] Rolling back bad changes with svn in Eclipse

查看:148
本文介绍了在Eclipse中使用svn回滚坏的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我对Subversion存储库做了一些不好的改动。然后我做出了很好的改变,我想保留。



最简单的方法是回滚Eclipse中的这些坏的变化,并保持良好的变化?假设与坏变化相关的文件与有关变更相关的文件不一致。主要是通过Eclipse插件(Subclipse或Subversive)来执行此操作,但是命令行命令

解决方案

你有两个选择。



快速和脏的是在项目资源管理器视图中选择您的文件(使用 ctrl ),右键单击它们,选择替换为... 然后为您选择最佳选项,从最新的存储库或一些分支版本。获取这些文件后,您可以修改它们(使用空格或修复某些内容,并调用它们并提交它们以创建较新版本。



更干净的方法是选择在团队菜单中合并,并浏览向导,帮助您恢复实际版本中的旧版本。



命令具有命令行等价物: svn revert svn merge


Let's say I have committed some bad changes to Subversion repository. Then I commit good changes, that I want to keep.

What would be easiest way to roll back those bad changes in Eclipse, and keep the good changes? Assuming that files relating to bad changes are not same as those relating to the good changes. How things change if good changes were made to same files as bad changes?

I am mostly looking a way to do this via Eclipse plugins (Subclipse or Subversive) but commandline commands are also interesting.

解决方案

You have two choices to do this.

The Quick and Dirty is selecting your files (using ctrl) in Project Explorer view, right-click them, choose Replace with... and then you choose the best option for you, from Latest from Repository, or some Branch version. After getting those files you modify them (with a space, or fix something, your call and commit them to create a newer revision.

A more clean way is choosing Merge at team menu and navigate through the wizard that will help you to recovery the old version in the actual revision.

Both commands have their command-line equivalents: svn revert and svn merge.

这篇关于在Eclipse中使用svn回滚坏的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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