Daily Archives: December 27, 2007

Today I learned to make SVN branches

And it is a *LOT* of fun. Branches are a way to store code you are fiddling with on the server instead of scattered around your home directory. It is also a great way to version control your hacking. Up to now I kept making tar files each time something worked and I had made progress.
I made branches for all my outstanding fiddling
o Frameless portal – functional – 70% complete – needs cleanup
o iFrame Portlet – functional – 50% complete – needs careful moving of features from web content tool
o Mail archive tool performance improvement – 10% complete – I have refactored code to make paging calls. But it does not really do paging. The real work is to move paging from MailArchiveAction into the service and this will require SQL hacking.
Here is how you make an SVN branch:
svn copy https://source.sakaiproject.org/svn/mailarchive/trunk/ https://source.sakaiproject.org/svn/mailarchive/branches/SAK-11544/ -m “Branch for Mail Archive Performance Improvement”
svn copy https://source.sakaiproject.org/svn/web/trunk/ https://source.sakaiproject.org/svn/web/branches/SAK-12563/ -m “Create branch for iframe portlet”
svn copy https://source.sakaiproject.org/svn/portal/branches/SAK-12350/ https://source.sakaiproject.org/svn/portal/branches/SAK-12402/ -m “Create branch for frameset portal”
This is so easy and fun – I cannot believe I did not know how to do this until today. I learned from this web page:
http://svnbook.red-bean.com/en/1.1/ch04s02.html
I love coding over holiday break! Coffee, pajamas, and a cable modem!