| 1 | GLEP: 36 |
1 | GLEP: 36 |
| 2 | Title: Subversion/CVS for Gentoo Hosted Projects |
2 | Title: Subversion/CVS for Gentoo Hosted Projects |
| 3 | Version: $Revision: 1.1 $ |
3 | Version: $Revision: 1.2 $ |
| 4 | Author: Aaron Walker <ka0ttic@gentoo.org> |
4 | Author: Aaron Walker <ka0ttic@gentoo.org> |
| 5 | Last-Modified: $Date: 2005/03/13 16:12:53 $ |
5 | Last-Modified: $Date: 2005/03/23 15:27:24 $ |
| 6 | Status: Draft |
6 | Status: Draft |
| 7 | Type: Standards Track |
7 | Type: Standards Track |
| 8 | Content-Type: text/x-rst |
8 | Content-Type: text/x-rst |
| 9 | Created: 11-Nov-2004 |
9 | Created: 11-Nov-2004 |
| 10 | Post-Date: 13-Mar-2005 |
10 | Post-Date: 13-Mar-2005, 21-Mar-2005 |
| 11 | |
11 | |
| 12 | Abstract |
12 | Abstract |
| 13 | ======== |
13 | ======== |
| 14 | |
14 | |
| 15 | Allow maintainers of Gentoo hosted projects to choose between Subversion/CVS. |
15 | Allow maintainers of Gentoo hosted projects to choose between Subversion/CVS. |
| … | |
… | |
| 21 | certain features, can choose which one suits them or their project the best. |
21 | certain features, can choose which one suits them or their project the best. |
| 22 | |
22 | |
| 23 | In addition, there are quite a few projects that should be Gentoo hosted, but |
23 | In addition, there are quite a few projects that should be Gentoo hosted, but |
| 24 | are hosted elsewhere due to the fact that Subversion is not currently offered. |
24 | are hosted elsewhere due to the fact that Subversion is not currently offered. |
| 25 | Examples include the app-vim/gentoo-syntax package ([1]_), and |
25 | Examples include the app-vim/gentoo-syntax package ([1]_), and |
| 26 | app-shells/bash-completion-config ([2]_). |
26 | app-shells/gentoo-bashcomp ([2]_). |
| 27 | |
27 | |
| 28 | Subversion has many advantages over CVS, including changesets, directory |
28 | Subversion has many advantages over CVS, including changesets, directory |
| 29 | versioning, atomic commits, versioned metadata, and more efficient branching |
29 | versioning, atomic commits, versioned metadata, and more efficient branching |
| 30 | and tagging ([3]_). Despite these advantages, many developers feel that |
30 | and tagging ([3]_). Despite these advantages, many developers feel that |
| 31 | Subversion is not yet ready for the main tree due to scaling issues. |
31 | Subversion is not yet ready for the main tree due to scaling issues. |
| … | |
… | |
| 76 | |
76 | |
| 77 | $ mkdir -p /var/svnroot/conf |
77 | $ mkdir -p /var/svnroot/conf |
| 78 | |
78 | |
| 79 | 7. To create new repositories, simply run:: |
79 | 7. To create new repositories, simply run:: |
| 80 | |
80 | |
| 81 | $ svnadmin create /var/svnroot/<repos> |
81 | $ svnadmin create --fs-type fsfs /var/svnroot/<repos> |
| 82 | |
82 | |
| 83 | 8. Make sure newly created/converted repositories have correct permissions. Of course, Infra might want to do this differently:: |
83 | 8. Make sure newly created/converted repositories have correct permissions. Of course, Infra might want to do this differently:: |
| 84 | |
84 | |
| 85 | $ chown -Rf svn:users /var/svnroot/<repos> |
85 | $ chown -Rf svn:users /var/svnroot/<repos> |
| 86 | $ chmod -Rf 775 /var/svnroot/<repos> |
86 | $ chmod -Rf 775 /var/svnroot/<repos> |
| … | |
… | |
| 100 | References |
100 | References |
| 101 | ========== |
101 | ========== |
| 102 | |
102 | |
| 103 | .. [1] app-vim/gentoo-syntax |
103 | .. [1] app-vim/gentoo-syntax |
| 104 | http://developer.berlios.de/projects/gentoo-syntax/ |
104 | http://developer.berlios.de/projects/gentoo-syntax/ |
| 105 | .. [2] app-shells/bash-completion-config |
105 | .. [2] app-shells/gentoo-bashcomp |
| 106 | http://developer.berlios.de/projects/bashcomp-config/ |
106 | http://developer.berlios.de/projects/gentoo-bashcomp/ |
| 107 | .. [3] Version Control with Subversion |
107 | .. [3] Version Control with Subversion |
| 108 | http://svnbook.red-bean.com/en/1.0/ch01s03.html |
108 | http://svnbook.red-bean.com/en/1.0/ch01s03.html |
| 109 | .. [4] Migration of Gentoo Repositories from CVS to Subversion |
109 | .. [4] Migration of Gentoo Repositories from CVS to Subversion |
| 110 | http://dev.gentoo.org/~trapni/CVS2SVN.MIGRATION |
110 | http://dev.gentoo.org/~trapni/CVS2SVN.MIGRATION |
| 111 | .. [5] cvs2svn Documentation |
111 | .. [5] cvs2svn Documentation |