Upgrade Subversion Server from 1.7 to 1.8

▼魔方 西西 提交于 2019-12-05 02:11:36

It's not mandatory that you do anything on the server to upgrade your repository. To take advantage of new features in the FSFS backend going forward, you can run svnadmin upgrade but to get the full benefit for your whole history, you'll need to perform a dump/load cycle.

That said, there is a bug with svnadmin upgrade in 1.8.0 which results in a crash if you have an unsharded repository. So you may want to wait until 1.8.1, or do the full dump/load.

According to the Apache Subversion 1.8 Release Notes, you just install the newest libraries and binaries on top of the older ones.

I'd have a good backup of Subversion 1.7 before I tried this.

How can you determine the repository version?

look at {repo}/db/fs-type and {repo}/db/format. Mine is currently:

4
layout sharded 1000

Can/Does it need to be upgraded?

It doesn't have to be upgraded; svn 1.8 supports FSFS format 4, as well as some earlier formats. Dumping and reloading will give you the newest FSFS format (5), with some efficiency advantages, and presumably put off the day when you are forced to upgrade.

I believe the gains are greatest when there are a lot of small commits; on two repos I control I found repo size to be reduced by only about 5-10% going from FSFS 4 to FSFS 5.

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