如何跳过 svnsync sync 中的初始修订(修复损坏的存储库) [英] How to skip initial revisions in svnsync sync (to fix broken repository)

查看:98
本文介绍了如何跳过 svnsync sync 中的初始修订(修复损坏的存储库)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用(通常)序列从中等大型 SVN 存储库中同步/复制单个项目

I want to sync/copy a single project out of a moderate large SVN repo using the (usual) sequence

  svnadmin create %mirror%
  rem make insecure dummy hook
  echo rem dummy > %mirror%\hooks\pre-revprop-change.bat
  svnsync init %mirror_url% http://svn/original/...
  svnsync sync %mirror_url%

这有效但需要很长时间,请参阅相关问题.事实上,我不需要任何修改之前,例如r=17830.真正的问题是,在此修订之前,原始 repo 似乎已损坏,我无法将其转换为 hg,因此我尝试解决方法 ...

This works but takes long time, see related question. In fact I do not need any revisions prior to e.g. r=17830. And the real problem is that the original repo seems to be corrupt before this revision and I can't convert it to hg, so I try to workaround ...

问题:有没有办法伪造新创建的 repo(在第 4 行之后),因此它相信"它已经有了 17830 版本并继续更新.(也许是一些 propset 魔法?)在该修订之前,项目/文件夹中没有任何变化.

Question: Is there a way to fake the newly created repo (after 4th line) so it "believes" it has revision 17830 already and continues with newer ones. (Maybe some propset magic?) There are no changes in the project/folder before that revision.

推荐答案

从我基于实验和得到答案的帮助来看,我认为这是不可能的.

From my experiments based and helped by the answers, I believe this is not possible.

这篇关于如何跳过 svnsync sync 中的初始修订(修复损坏的存储库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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