gpt4 book ai didi

svn - Tortoise SVN 修订历史

转载 作者:行者123 更新时间:2023-12-01 12:00:01 25 4
gpt4 key购买 nike

我想知道乌龟svn保留修订历史多久。假设我有一个文件在一年前通过 repo 浏览器从存储库中删除,我还能恢复该文件吗?

如果我能够恢复,我也想知道永久删除该文件的早期副本和相关修订历史的方法,以便将来没有人能够访问该文件。可能吗?我在我的组织中遇到了问题,因为我经常更新和删除假设该文件被永久删除。存储库的文件系统现在已经肿了。请建议如何修复它。

最佳答案

Tortise SVN 实际上只是一种访问 Subversion 存储库的简单方法。引用有关如何永久删除文件的 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.

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

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 [ed: changed link] of the Subversion book for details about this.

本质上,您将整个存储库打包到一个文件中,运行一个命令从该包中删除对给定路径的所有引用,然后将该包转换为一个新的、不同的存储库.在服务器上将旧的换成新的,一切顺利。

除此之外,正如它所提到的,您客户的所有工作副本都可能会失效。而这确实需要能够访问服务器。您正在运行自己的 SVN 服务器,对吧?

关于svn - Tortoise SVN 修订历史,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2675453/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com