English 中文(简体)
SVN “Malform file” Corrupt Reito
原标题:SVN "Malformed file" Corrupt Repository

我今天有一个腐败存放处的问题。

尽管Svnadmin核实说所有东西都是K.,但Svnlog给我“Malised file”错误。

当你的渊源历史如此时,它总是坏了,在帮助某人的情况下,也给人留下了答案。

最佳回答

页: 1

  • run "svnadmin dump REPOSPATH > nul"

请注意,最后一项修订(例如,第99条),后一项修改有错误(例如100)。

  • Open the bad revision props from REPOSPATHdb evprops.

如果有香烟或烟,你可以确定:

  • copy the previous props (99) over the bad one (100)
  • open the corrected props, set the date to a resonable value (don t edit anything else unless you know the file format)

运行“vnadminump REPOSPATH > nul”

问题回答

@laktak的解决方案在大多数情况下都是在推进剂被腐蚀的情况下进行的,而不是如@jgifford25所指出的实际更新文件。

理想的解决办法是:

  1. Identify corrupt changes as suggested @laktak, let s say 100
  2. Take the dump till only last valid version from the start as a backup, or skip this if you have backup till valid revision.
    svnadmin dump /path/to/currentrepo -r 0:99 --incremental > svnbackuptillvalid
  1. Take the second backup for version committed after revision 100, till head (only if any, skip this if you are sure there are no commits after corrupted).
   svnadmin dump /path/to/currentrepo -r 101:HEAD --incremental > svnbackupafterinvalid
  1. Now create a new repository
    svnadmin create /path/to/newrepo
  1. Restore the valid revision backup to the new repo
    svnadmin load /path/to/newrepo < svnbackuptillvalid

• 与一个小组分享新的URL,或删除现有的背书,并使用同一途径。

此外,你还可以在印瓦修正后添加有效的改动。

    svnadmin load /path/to/newrepo < svnbackupafterinvalid




相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签