有没有办法将 svnsync 与从转储文件加载的存储库一起使用?

Nit*_*xDM 5 svn

我创建了一个新的存储库 A。

以存储库 B 作为源运行 svnsync init。

将转储文件从 B (rev 0 to 1690 of 1801) 加载到 A。

然后尝试运行 svnsync。我的想法是 svnsync 可以从转储文件停止的地方开始。

这是错误:

svnsync: Destination HEAD (1690) is not the last merged revision (0); have you committed to the destination without using svnsync?
Run Code Online (Sandbox Code Playgroud)

有没有办法让 svnsync 认为它已经同步到当前的转速?

Sco*_*ell 6

加载转储文件后,您可以运行以下命令:

svn propset --revprop -r0 svn:sync-last-merged-rev 1690 https://mysvn.com/svn
Run Code Online (Sandbox Code Playgroud)

所有 SYNC 属性都存储在[repository]\db\revprops\0\0. 您可以在那里检查和修改其他属性,但要谨慎操作。您可以轻松破坏设置。我建议使用命令行而不是手动编辑 0 文件。