SVN Revert Trunk,删除一个修订版,就好像它从未存在过一样? [英] SVN Revert Trunk, remove a revision as if it never existed?

查看:37
本文介绍了SVN Revert Trunk,删除一个修订版,就好像它从未存在过一样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在 svn 服务器中删除一个修订版,就好像它从未存在过一样?

Is it possible in the svn server to remove a revision as if it never existed?

所以我们有以下修改:

1004 // Commit of some bogus code that broke the build and was just wrong
1003 // Change 1.2
1002 // Change 1.1
1001
1000 *** Initial checkin

我们可以删除 svn 中的 1004 并恢复到 1003,就好像 1004 从未存在过一样吗?

Can we we remove the 1004 in svn and revert back to 1003 as if 1004 never existed?

原谅我的无知,我还在学习如何使用SVN.

Forgive my ignorance, I'm still learning how to use SVN.

推荐答案

VCS 系统是专门设计的,目的是让这一切尽可能复杂.您通常不想这样做.

VCS systems are designed specifically to make this as complicated as possible. You usually do not want to do this.

话虽如此,来自官方文档:

That being said, from the official documentation:

在某些特殊情况下,您可能希望销毁文件或提交的所有证据.(也许有人不小心提交了一份机密文件.)这并不容易,因为 Subversion 是故意设计成永远不会丢失信息的.修订是不可变的树,它们相互建立.从历史中删除修订会导致多米诺骨牌效应,在所有后续修订中造成混乱,并可能使所有工作副本失效.

There are special cases where you might want to destroy all evidence of a file or commit. (Perhaps somebody accidentally committed a confidential document.) This isn't so easy, because Subversion is deliberately designed to never lose information. Revisions are immutable trees which build upon one another. Removing a revision from history would cause a domino effect, creating chaos in all subsequent revisions and possibly invalidating all working copies.

然而,该项目计划有朝一日实施一个 svnadmin 删除 命令,该命令将完成永久删除信息的任务.(请参阅issue 516.)

The project has plans, however, to someday implement an svnadmin obliterate command which would accomplish the task of permanently deleting information. (See issue 516.)

与此同时,你唯一的办法是svnadmin dump你的存储库,然后通过svndumpfilter(不包括坏路径)将转储文件通过管道传输到svnadmin load 命令.有关这方面的详细信息,请参阅 Subversion 书籍的第 5 章.

In the meantime, your only recourse is to svnadmin dump your repository, then pipe the dumpfile through svndumpfilter (excluding the bad path) into an svnadmin load command. See chapter 5 of the Subversion book for details about this.

http://subversion.apache.org/faq.html#removal

这篇关于SVN Revert Trunk,删除一个修订版,就好像它从未存在过一样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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