问题
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:
- The entire source repository is dumped
- A new destination repository is created and nothing is committed to it
- 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