Svn for admins

From OctopusWiki
Jump to navigation Jump to search

Migration from cvs to svn

cvs2svn --dump-only --dumpfile dumpfile /path/to/cvs/module svnadmin create /path/to/svn svnadmin load /path/to/svn < dumpfile chown -Rh apache:<commit group> /path/to/svn chmod -R g+w /path/to/svn

Notes

  • The commit group is only required for svn+ssh access.
  • Similar for the chmod operation

Pre-commit hook

There is a Python pre-commit hook, located in /server/www/tddft.org/programs/octopus/svn/hooks/pre-commit, which prevents committing F90 files with lines longer than 132 columns to the repository.