是否可以删除 subversion 存储库中的内容? [英] Is it possible to delete content in a subversion repository?

查看:57
本文介绍了是否可以删除 subversion 存储库中的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从 subversion 存储库中完全删除包含历史记录的文件?问题是不需要版权的非法文件.

Is it possible to delete a file from subversion repository completely including the history? The problem are illegal files without the needing copyright.

我该怎么做?

推荐答案

不,抱歉.这是邮件列表中计划多但尚未实现的 svnobleterate 功能.

No, sorry. This is the much planned but not-yet-implemented svn obliterate feature on the mailing list.

您能做的最好的事情是使用 svnadmin dump 进行完整的存储库转储,过滤掉要删除的文件,然后 svnadmin 将其加载 到一个干净的存储库中.分发包中包含一个脚本 svndumpfilter;我认为这不能按原样过滤掉单个文件,但这是一个很好的起点.据我所知,脚本无法处理 --deltas 转储,所以你可能不得不坚持使用 --incremental.

The best you can do is to take a complete repository dump with svnadmin dump, filter out the files you want to remove and then svnadmin load it into a clean repository. There is a script svndumpfilter included in the distribution; I don't think that can filter out individual files as-is but it's a good starting point. As far as I remember the script can't cope with --deltas dumps, though, so you might have to stick with --incremental.

这篇关于是否可以删除 subversion 存储库中的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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