问题描述
我正在尝试从 svn 转储生成一个新的存储库.svn 转储文件包含修订版 1-41.
I'm trying to generate a new repository from an svn dump. The svn dump file contains revisions 1-41.
我生成新的存储库:svadmin create software_2.0
然后将修订版加载到存储库中: svnadmin load software_2.0
I generate the new repository: svadmin create software_2.0
And then load the revision into the repository: svnadmin load software_2.0 < dump_1_41.dump
但是,当完成时,我收到消息 committed new rev 1 (loaded from original 41)
However, when complete, I get the message committed new rev 1 (loaded from original 41)
如何在将转储文件加载到新创建的存储库时保留修订号?
How do I preserve the revision number when loading a dump file into a newly created repository?
推荐答案
假设以下条件:
- 转储整个源代码库
- 创建了一个新的目标存储库,并且没有提交任何内容
- 源存储库中的转储文件已完整加载
然后您的修订历史记录(包括数字)将保留.
Then your revision history (including the numbers) will be preserved.
您的转储文件可能不包含您认为它包含的内容.
It's likely that your dumpfile doesn't contain what you think it contains.
这篇关于svnadmin 加载但保留修订号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!