想象一下以下情况:
防病毒扫描程序将删除受影响的修订版或将其移至隔离区。结果是一个损坏的存储库。
如果修订文件可恢复(从隔离区),如何解决此问题?
我有一些目标要实现:
这个小问题的最佳解决方案是什么?
最佳答案
来自 FAQ :
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 of the Subversion book for details about this.
关于svn - Subversion 存储库中的病毒,怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2922057/