This forum is no longer active. Please post your questions to our new community site

Forums Trac

SVN repository on Windows - Hope This Helps

Subscribe to SVN repository on Windows - Hope This Helps 4 post(s), 3 voice(s)

 
Avatar nick3216 2 post(s)

I keep seeing this problem, in one form or another, on here and having been through the pain the answer, while obvious once you see it, isn’t that obvious.

I think I need to share the pain I’ve been through to help provide a more complete answer than the one I see posted repeatedly.

Repeated Question: What is the URL for the default Trac Stack svn repository from the command line on Windows ?

Version: Trac 0.11.6

Scenario:

You’ve installed the Trac stack onto a Windows XP box, accepting all the defaults.

Here are the variables that will make a difference in this example -replace them with the actual variables in your case.

Machine name: BITNAMI
Account name: Administrator
Project name: Foo

You can see the project in “C:\Documents and Settings\Administrator\BitNami Trac Stack projects\Foo”

The repository, according to C:\Documents and Settings\Administrator\BitNami Trac Stack projects\Foo\conf\trac.ini
and confirmed by inspection, is in “C:\Documents and Settings\Administrator\BitNami Trac Stack repository”

Your source browser can see the SVN repository through the web interface at http://BITNAMI/trac/Foo/browser

You now want to conect to the svn repository from either the command line or a tool such as Tortoise.

But what is the URL?

Now on Linux and Mac OSes the URL for the default Trac Stack svn repository would be your choice of either

  1. svn://BITNAMI/Users/Administrator/Trac/repository
  2. svn://localhost/Users/Administrator/Trac/repository
  3. svn://127.0.0.1/Users/Administrator/Trac/repository

And other answers on here tell Windows users to point their SVN repository browser to:
svn://IP_address_of_the_repository_computer/repository_name

What does repository_name mean in a Windows context, given drive letters, directory separators in the “wrong” direction, and Windows inability to neatly handle spaces in directory names?

It means:

  1. drop the drive letter
  2. swap ‘\’ for ‘/’
  3. wrap the whole URL (not just repository_name) in quotes.

So, for example, in the scenario above the URL is:

“svn://BITNAMI/Documents and Settings/Administrator/BitNami Trac Stack Repository”

You can verify this if you’ve run the very helpful “C:\Program Files\BitNami Trac Stack\scripts\setenv.bat” file which allows you to run svn from the command line:

$ svn co “svn://BITNAMI/Documents and Settings/Administrator/BitNami Trac Stack Repository” ./working
Checked out revision 0.

I hope this help other Windows users with a minor niggle to what is otherwise a great product.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for posting this great tutorial! I’m sure that will be very useful for a lot of bitnami users.

 
Avatar georgeye 1 post

Thank you very much for ur sharing.
but , i still have a question about this.

In my own PC (Client side)
I can use TortoiseSVN to checkout from server by URL : “svn://IP_address_of_the_repository_computer/repository_name”

but I can not use TortoiseSVN to Commit new files to the server

The error message is :

commit failed (…)

have you ever met this problem?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Did you try with the full path?


So, for example, in the scenario above the URL is:
“svn://BITNAMI/Documents and Settings/Administrator/BitNami Trac Stack Repository”
Forums Trac