I want to create a new repo where the value of the revision is whatever I want it to be.
svnadmin create REPOS_PATH --rev-number-to开发者_JAVA技巧-start 10,000
Like you do with a check book.
Pretty sure each rev has to exist even if it's empty. I tried doing svnadmin create and the hacking the [repo]/db/current
file up to 10k but that doesn't work because none of the revs are there.
Only way I could do it was to create a repository with a bunch of revisions, dump them, filter out everything and then load the filtered "empty" dump file.
for n in {0..4999}; do echo "--- $n"; svn mkdir fake; svn ci -m ""; svn rm fake; svn ci -m ""; done
svnadmin dump /path/to/repo > repo-10k.dump
svnadminfilter include zzz < repo-10k.dump > repo-10k-empty.dump
svnadmin create newrepo
svnadmin load newrepo < repo-10k-empty.dump
精彩评论