| 1 | '''Subversion is no longer used, the team has switched to Git''' |
| 2 | |
| 3 | Subversion is used for version control; the repositories are stored in /home/svn. Repositories are accessed securely from subversion clients (such as !NetBeans) using the URL: |
| 4 | * svn+ssh://jupiter2.raidtech.net/home/svn/<repositoryname> |
| 5 | Separate repositories are used for each sub-team that does not need to share code with other sub-teams (e.g. gameapp, sensors, etc.). Experiments should be done using the test repository. |
| 6 | === Creating a repository: |
| 7 | {{{ |
| 8 | sudo svnadmin create /home/svn/myrepo |
| 9 | sudo chown -R root:swdev /home/svn/myrepo/db |
| 10 | sudo chmod -R g+w /home/svn/myrepo/db |
| 11 | sudo chown -R root:swdev /home/svn/myrepo/locks |
| 12 | sudo chmod -R g+w /home/svn/myrepo/locks |
| 13 | }}} |
| 14 | After creating a repository, add it to Trac using the [http://wiki.raidtech.net/admin/versioncontrol/repository web interface]. If there is data in the repository already, you may need to execute the following command: |
| 15 | {{{ |
| 16 | sudo trac-admin /var/local/trac repository resync "myrepo" |
| 17 | }}} |
| 18 | You may also need to add a post-commit hook in the repository to call: |
| 19 | {{{ |
| 20 | trac-admin /var/local/trac changeset added "myrepo" $REV |
| 21 | }}} |
| 22 | For more information see: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.create.html |
| 23 | |
| 24 | === Adding a project |
| 25 | To create a project within a repository using the command line, on your local computer: |
| 26 | * create project dir myproj w/sub-dirs: tags, branches, trunk |
| 27 | * create/copy your project under myproj/trunk (see example helloc project in test repository) |
| 28 | * cd myproj |
| 29 | * svn import !svn+ssh://jupiter2.raidtech.net/<repositoryname> -m "initial import" |
| 30 | You can also usually create projects using the subversion client in your IDE. |
| 31 | |