Tag Archives: svn

Exclude svn files while copying in linux

SVN recursively populates .svn folders in all the children folders of a project under version control. There are a number of techniques to copy the parent folder without copying the .svn folders and files, but I find the following to be easiest and quickest.

amit@texens:~$ rsync -aC /path/to/srcdir/ /path/to/destdir

The trailing “/” on srcdir is to make sure that the contents of srcdir are copied to destdir. Without the trailing “/”, the destdir will contain the srcdir and everything will be one more level down.

One other option is to copy the directory without paying any heed to the .svn directories and then find and delete all the .svn folders using the following command.

amit@texens:~$ cp -r /path/to/srcdir/folder /path/to/destdir
amit@texens:~$ find /path/to/destdir -name '.svn' -exec rm -r {} \;

My first svn commit

Here comes the day I had been waiting for since the very first day i started my internship…I made my first svn commit today. svn stands for SubVersion. Its a studd way of keeping ur code under strict version control. We write code and we write a lot of that. Many a times we need to revert back to the old code when things don’t work as expected. This version control system comes handy in such situations. All you need to do is shoot a command on the terminal and you’ll have the old code base back on your system. I worked on my first story, it was a short one, in fact a zero pointer, and had to do with the view of the form of the app we’re working on. The feeling that you have when you make the transition from a learner to a developer is just great, it can’t be expressed, you need to experience it to know it. Its like coming out of the egg shell, facing the world. It takes away all the securities that you have. But then it also brings with itself a lot of responsibilities.