Tuesday, January 25, 2011

Recursively delete .svn directories

rm -rf `find . -type d -name .svn`

Shows svn check ins for a specific user in a certain date range.

$ svn log -r {2009-07-09}:{2007-08-17} | grep -a3

Svn diff

Svn difference command


svn diff -r 30:34 <filename>
 
It will provide the partitular file name difference 
 
svn diff -r 2815:2814 --summarize
 
It will provide the comlete file list that have been changed  

Python coding guidlines

Hi All,

This link will help in understanding the python coding guidlines

http://bayes.colorado.edu/PythonGuidelines.html

Svn revert command


svn update 
svn merge -r 150:140 . 
svn commit -m "Rolled back to r140"

Monday, July 5, 2010

Svn Sync Steps

I have enclosed the steps to do the svnsync option.

1). Create New Repository.(this should be empty repo in desg end)

2).  Use following command to initiate SVN Synchronize

svnsync init "Desg SVN Repo URL" "Source repo path" --source-username   --source-password --sync-username --sync-password

3). Use following command to  SVN Synchronize

svnsync sync "desg SVN repo " --source-username
  --source-password --sync-username --sync-password

Wednesday, June 30, 2010

Svn Relocate syntax in Linux and windows

I was doing integration between svn with ldap through apache initially my server has been configured through svnserve, now we have been changing those in apache. 
Once the integration I was unable to take an update from the svnserve checkout source since its having reference from that protocol that time my colleague gave this idea to implement svn relocate and it works perfectly as per our requirement.

Syntax:-

Linux:-
Svn switch -relocate svn://domainname/yourprojectname/path
http://domainname/yourprojectname/path
 
Windows:- 
Use tortoise svn -> relocate option and change the URL.