| 41 | === Getting Subversion working === |
| 42 | (this is a cite from TracOnDebianSarge as this is extremely useful for firtstime user setting up subversion repository) |
| 43 | |
| 44 | To create a Subversion project at '''/var/svn/project''', issue these commands to get SVN up and running: |
| 45 | |
| 46 | ''Note:'' As of this writing, the default Subversion package uses the BDB filesystem; if this is acceptable, feel free to omit the extra argument to '''svnadmin create'''. |
| 47 | |
| 48 | {{{ |
| 49 | $ mkdir /var/svn |
| 50 | $ mkdir /var/svn/project |
| 51 | $ mkdir /tmp/project |
| 52 | $ mkdir /tmp/project/branches |
| 53 | $ mkdir /tmp/project/tags |
| 54 | $ mkdir /tmp/project/trunk |
| 55 | $ svnadmin create /var/svn/project --fs-type fsfs |
| 56 | $ svn import /tmp/project file:///var/svn/project -m "initial import" |
| 57 | $ rm -rf /tmp/project |
| 58 | }}} |
| 59 | |
| 60 | Fix permissions to the repository: |
| 61 | {{{ |
| 62 | $ find /var/svn/project -type f -exec chmod 660 {} \; |
| 63 | $ find /var/svn/project -type d -exec chmod 2770 {} \; |
| 64 | $ chown -R root.www-data /var/svn/project |
| 65 | }}} |
| 66 | |
| 67 | |
| 68 | |