SVN Revert Trunk,删除一个修订版,就好像它从未存在过一样?

编程入门 行业动态 更新时间:2024-10-24 08:21:03
本文介绍了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.

subversion.apache/faq.html#removal

更多推荐

SVN Revert Trunk,删除一个修订版,就好像它从未存在过一样?

本文发布于:2023-07-16 23:04:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1126858.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:修订版   就好像   SVN   Revert   Trunk

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!