Search
Calendar
May 2025
S M T W T F S
« Apr    
 123
45678910
11121314151617
18192021222324
25262728293031
Archives

Posts Tagged ‘Subversion’

PostHeaderIcon SVN repository location change

Case

Your project repository was hosted by a server oldServer. A morning, you come at office, nothing works, impossible to update your project.

After hours searching for an explanation, you happen to know that your dear colleagues off-shore moved the repository onto another location, let’s say newServer.

Now you have to relocate your project on your local desktop.

Fix

Use the following command on your project head folder:

svn switch --relocate svn://oldRepository svn://newRepository

This operation may be performed with TortoiseSVN (right click on the directory > TortoiseSVN > Relocate)

PostHeaderIcon Automatic update with TortoiseSVN

On my current position, I had to update my project with Subversion every morning. It took half an hour every day ; some other guys prefered to update only once a week or twice a month… But they accepted to spend half a day for merges etc.
Yet, I found a way to make this update automatically, thanks to a planned task in Windows XP.

The command that is launched is
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"C:\the\path\of\my\project" /notempfile /closeonend

Thanks to another planned task, I rebuild the complete project with Maven. And on breakfast I find my project up-to-date with all jars compiled and available.

PostHeaderIcon How to set default keywords to files with Subversion?

Abstract: we would like to add the SVN-keyword $Id$ to all SQL files.

  • go to SVN config folder (mainly $HOME/Subversion/config)
  • search for line:
[auto-props]
  • just below, add the following line:
 *.sql = svn:keywords=Id