如何从SVN中删除损坏的文件?

时间:2014-02-28 06:28:39

标签: svn

当我从转储恢复我的SVN repo时,我发现其中一个分支有一些错误。作者专栏显示了TortoiseSVN中的###error###。当我尝试打开文件时,我的消息提示Unable to connect to a repository at URL <THE_URL> Corrupt representation 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

当我检查SVN日志文件时,它显示了这个:

[Fri Feb 28 14:07:29 2014] [error] [client 192.168.1.3] (160004)APR does not understand this error code: Can't fetch proplist of '<file_path>': Corrupt node-revision 'ju-1679.0.r1679/47785'
[Fri Feb 28 14:07:29 2014] [error] [client 192.168.1.3] (160004)APR does not understand this error code: Can't get created-rev of '<file_path>': Corrupt node-revision 'j5-1679.0.r1679/47431'
[Fri Feb 28 14:07:29 2014] [error] [client 192.168.1.3] (160004)APR does not understand this error code: Can't get created-rev of '<file_path>': Corrupt node-revision 'j5-1679.0.r1679/47431'
[Fri Feb 28 14:07:29 2014] [error] [client 192.168.1.3] (160004)APR does not understand this error code: Can't fetch proplist of '<file_path>': Corrupt node-revision 'j5-1679.0.r1679/47431'
[Fri Feb 28 14:08:04 2014] [error] [client 192.168.1.3] Could not fetch resource information.  [500, #0]
[Fri Feb 28 14:08:04 2014] [error] [client 192.168.1.3] Error checking kind of path '/branches/2.0/externalJar' in repository  [500, #160004]
[Fri Feb 28 14:08:04 2014] [error] [client 192.168.1.3] Corrupt node-revision 'bp-1557.0.r1557/87025'  [500, #160004]
[Fri Feb 28 14:08:04 2014] [error] [client 192.168.1.3] Found malformed header 'ream' in revision file  [500, #160004]
[Fri Feb 28 14:08:07 2014] [error] [client 192.168.1.3] Could not fetch resource information.  [500, #0]
[Fri Feb 28 14:08:07 2014] [error] [client 192.168.1.3] Error checking kind of path '/branches/1.1/WebContent' in repository  [500, #160004]
[Fri Feb 28 14:08:07 2014] [error] [client 192.168.1.3] Corrupt node-revision '1-1386.0-1393.r1459/4509'  [500, #160004]
[Fri Feb 28 14:08:07 2014] [error] [client 192.168.1.3] Found malformed header '93.r1459/3852' in revision file  [500, #160004]
[Fri Feb 28 14:08:11 2014] [error] [client 192.168.1.3] Could not fetch resource information.  [500, #0]
[Fri Feb 28 14:08:11 2014] [error] [client 192.168.1.3] Error checking kind of path '/branches/1.0/.metadata' in repository  [500, #160004]
[Fri Feb 28 14:08:11 2014] [error] [client 192.168.1.3] Corrupt node-revision '1-1386.0.r1428/3137'  [500, #160004]
[Fri Feb 28 14:08:11 2014] [error] [client 192.168.1.3] Found malformed header '28/2511' in revision file  [500, #160004]
[Fri Feb 28 14:08:13 2014] [error] [client 192.168.1.3] Could not fetch resource information.  [500, #0]
[Fri Feb 28 14:08:13 2014] [error] [client 192.168.1.3] Error checking kind of path '/branches/1.0/WebContent' in repository  [500, #160004]
[Fri Feb 28 14:08:13 2014] [error] [client 192.168.1.3] Corrupt node-revision '1-1386.0.r1428/3137'  [500, #160004]
[Fri Feb 28 14:08:13 2014] [error] [client 192.168.1.3] Found malformed header '28/2511' in revision file  [500, #160004]

由于文件不可恢复,我怎么能删除特定文件以消除此错误?

1 个答案:

答案 0 :(得分:2)

您可以在存储库中运行svnadmin verify以进一步分析问题。

如果您仍希望从存储库历史记录中完全删除该文件,请使用svndumpfilter