svnadmin load but keep the revision numbers

大兔子大兔子 提交于 2019-12-24 04:22:12

问题


I'm trying to generate a new repository from an svn dump. The svn dump file contains revisions 1-41.

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

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?


回答1:


Assuming the following conditions:

  1. The entire source repository is dumped
  2. A new destination repository is created and nothing is committed to it
  3. The dumpfile from the source repository is loaded in full

Then your revision history (including the numbers) will be preserved.

It's likely that your dumpfile doesn't contain what you think it contains.



来源:https://stackoverflow.com/questions/21583295/svnadmin-load-but-keep-the-revision-numbers

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