Skip to main content

Posts

relocating/switching SVN repository

My SVN repository changed recently and I was worried about associating my Java workspace with the new repository . Checking out from the new repository was always an option but of course, I would have lost my non committed changes. After googling for half an hour, I found a way to switch my SVN repository. 1. Find the current repository's URL to which your files/folders are associated. svn info 2. Switch the repo. svn switch --relocate 3. Verify the current repo's URL. svn info Hope this helps.

Useful SVN commands

svn info Print information about paths in your working copy. svn status / svn st Print the status of working copy files and directories. svn update / svn up updates the working copy. svn commit -m "message goes here" / svn ci Send changes from your working copy to the repository svn log -l 10 Prints last 10 commits in reverse-chronological order by default.

SVN red book

I normally use Subclipse plugin for Eclipse for SVN operations. It really makes life easy. I am a novice when it comes to performing svn operations using SVN commands. I found a very useful resource for that: HTML version of SVN red book (for subversion 1.5) Hope you find this useful :)

Parameter vs Argument

The parameter is the local variable in the method and the argument is the caller-supplied value/reference. In the given example, the parameter for doSomething is 'a' and the argument is 22. public static void doSomething(int a) { System.out.println("The argument was " + a); } public static void main(String[] s) { doSomething(22); }