Friday, January 23, 2009
More Subversion
Tested using a remote SVN Host so that Capistrano can work
-
Created a local repository under /path/to/repo/trunk/projectname so that there could be branches and tags directories under /path/to/repo/
-
Ran svnsync init --username myname http://remoterepo.com/svn file:///path/to/repo (it asked for password)
-
Then ran svnsync sync --username myname http://remoterepo.com/svn
SVN reads the latest version number at remote repo and then transmits all revisions since then to remote repo (this time it didn't ask for password)
Upgrading to Rails 2.2. Managing vendor libraries in
file:///usr/share/doc/packages/subversion/html/book/svn-book.html#svn.advanced.vendorbr is helpful for understanding the steps involved. Unfortunately, rake rails:freeze:gems deletes the existing vendor/rails directory and http://bjhess.com/blog/2008/03/03/howto-commit-an-incremental-rails-upgrade-to-svn/is good to know. Some sample svn commands
-
svn mkdir file:///home/user/repos/pickyricky/branches -m "creating branches directory"
-
svn copy file:///home/user/repos/pickyricky/trunk file:///home/user/repos/branches/0.3 -m "version .3 of pickyricky"
-
svn delete file:///home/user/repos/vendor/rails/activesupport -m "cleanup"