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

  • 本文关键字:损坏 文件 删除 SVN svn
  • 更新时间 :
  • 英文 :


当我从转储中恢复我的SVN存储库时,我发现其中一个分支中存在一些错误。作者专栏在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]

由于该文件不可恢复,我如何删除特定文件以摆脱此错误?

您可以在存储库上运行 svnadmin 验证以进一步分析问题。

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

最新更新