Search This Blog

Friday, July 31, 2009

OpenSource, Subversion

Subversion is a great version control software.

Check svn with previous version:
svn diff -r BASE:PREV /usr/src/sys/sys/socket.h | more

Diff with a certain version:
svn diff -r #(revision number) | more

See LAST change of a single file on EACH LINE:
svn blame /usr/src/sys/net/if_gif.c | more

Export your source code without all .svn folders.
svn export <url-to-repo> <dest-path>

Create a local subversion repository for yourself (3 steps under Unix):
svnadmin create /svnroot/project/trunk
svn import /path/to/your/code file:///svnroot/trunk -m "first import"
svn checkout file:///svnroot/trunk /path/to/your/working/copy

Setting up Subversion in Fedora:
http://www.subversionary.org/howto/setting-up-a-server-on-fedora-core-4
http://www.technize.com/2008/05/27/how-to-configure-svn-subversion-server-on-fedora-core-with-apache22-under-selinux/


No comments: