Search code examples
svnurlvisualsvn

subversion url redirect


I couldn't figure out how to do a repository url redirect in Svn...

Here is a scenario:

For SVN server we use Visual SVN, for clients mostly Tortoise SVN.

We create a branch each time we do a production source rollover. Then the url looks like this:

http://svnserver.blabla.com/branches/8_3_0_0/development ... next time will be http://svnserver.blabla.com/branches/8_4_0_0/development etc.

Now I want to have one URL like this : http://svnserver.blabla.com/production/ ... to be pointing to http://svnserver.blabla.com/branches/8_3_0_0/

So any time you want to checkout or to go to production source we will use one URL.

Can this be done and how?

Thanks.


Solution

  • Create a branch called /production, and merge or copy each production release’s changes to it. This will accomplish your goal of always having the production code accessible at the same URL, and SVN’s merge/copy tracking will record which branch generated which revision of /production.