git svn clone failed due to Svndiff backward-sliding source view

元气小坏坏 提交于 2020-05-15 02:33:45

问题


I am in the process of migrating svn repositories to git, using git svn clone, then pushing the clone to a remote origin to act as the new git repository.

Using this process I have successfully migrated 34 svn repos so far, but during the git svn clone process, 4 have failed due to the following error

Command:

git svn clone --authors-file=authors.txt svn+ssh://git@server/path/to/SVN/project/trunk/repo_name repo_name.git

Resulting in the error:

Svndiff data contains backward-sliding source view: Svndiff has backwards-sliding source views at /usr/libexec/git-core/git-svn line 5061

Has anyone encountered this error before and found a way around it, either forcing the git svn clone to ignore the error and continue, or to repair the SVN repo first?

I should probably add a little more background to this issue. I've been pointed in the direction of various tools to assist with the svn to git migration, but unfortunately most of these are a one way conversion and are not suitable for the task.

I have approximately 100 individual code bases to convert, and each of these are live systems in active development, so the migration will be a phased approach.

  1. Create live git clone of each svn repo -> keep in sync using git svn rebase, then push to remote origin master branch. git in read-only mode (for developers).
  2. Begin using git repo for code reviews rather than svn
  3. Start branching git repo for changes rather than svn, sync changes back to svn. svn in read only mode (for developers).

SVN will likely be used for the deploy/build process, so I cannot do a one time conversion and need to maintain the sync using git svn dcommit to push back at all stages.

来源:https://stackoverflow.com/questions/24904329/git-svn-clone-failed-due-to-svndiff-backward-sliding-source-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!