第 5 章 版本库管理

目录

1. Subversion 版本库的定义
2. 版本库开发策略
2.1. 规划你的版本库结构
2.2. 决定在哪里与如何部署你的版本库
2.3. 选择数据存储格式
2.3.1. Berkeley DB
2.3.2. FSFS
3. 创建和配置你的版本库
3.1. 创建版本库
3.2. 实现版本库钩子
3.3. Berkeley DB 配置
3.4. FSFS 配置
4. 版本库维护
4.1. 管理员的工具箱
4.1.1. svnadmin
4.1.2. svnlook
4.1.3. svndumpfilter
4.1.4. svnsync
4.1.5. fsfs-reshard.py
4.1.6. Berkeley DB 工具
4.2. 修正提交消息
4.3. 管理磁盘空间
4.3.1. 让 Subversion 节约磁盘空间
4.3.2. 删除终止的事务
4.3.3. 删除不使用的 Berkeley DB 日志文件
4.3.4. 打包 FSFS 文件系统
4.4. Berkeley DB 恢复
4.5. 版本库数据的移植
4.6. 过滤版本库历史
4.7. 版本库复制
4.8. 版本库备份
4.9. 管理版本库的 UUID
5. 移动和删除版本库
6. 总结

The Subversion repository is the central storehouse of all your versioned data. As such, it becomes an obvious candidate for all the love and attention an administrator can offer. While the repository is generally a low-maintenance item, it is important to understand how to properly configure and care for it so that potential problems are avoided, and so actual problems are safely resolved.

In this chapter, we'll discuss how to create and configure a Subversion repository. We'll also talk about repository maintenance, providing examples of how and when to use the svnlook and svnadmin tools provided with Subversion. We'll address some common questions and mistakes and give some suggestions on how to arrange the data in the repository.

If you plan to access a Subversion repository only in the role of a user whose data is under version control (i.e., via a Subversion client), you can skip this chapter altogether. However, if you are, or wish to become, a Subversion repository administrator,[30] this chapter is for you.



[30] 这可能听起来很崇高, 但我们所指的只是那些对管理别人工作副本数据之外的神秘领域感兴趣的人。