加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – svn清除所有修订版的项目

发布时间:2020-12-14 01:06:21 所属栏目:Linux 来源:网络整理
导读:从svn删除项目及其所有修订(完全清理)是否有赞誉? 干杯 解决方法 答案是在 Subversion FAQ: There are special cases where you might want to destroy all evidence of a file or commit. (Perhaps somebody accidentally committed a confidential docum
从svn删除项目及其所有修订(完全清理)是否有赞誉?

干杯

解决方法

答案是在 Subversion 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读