• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SVN repo url

 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just set up a new svn repo in my laptop by using

and now I have "repository" folder in my c:\svn folder

after that, I want to import my java project (the project name is svntest) for the first time into the repository by first creating svntest folder inside repo and then adding the ttb folder using:



but I got "could not connect to server (http://localhost)"

am I missing something here? thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew,
Since you aren't running a server for your SVN, you could just use the file:// protocol to reference your local repository. Here is an example
 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so, does that mean http(s) protocol only works for remote repository? and I must use svn or file protocol for local repository?
and also, if I set the local repository with the following command:


inside this repository, I have project A and B and each has ttb folder

how should I address trunk in project A?



or



or



I just want to know how the physical folder structure of the repository will affect the URL. thanks
 
Joe Areeda
Ranch Hand
Posts: 331
2
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

I think you're missing something about the protocol, server and local file repositories. I suggest you read Jeanne's link.

Our svn repositories are hosted on Linux and use Apache as the front end. Therefore our urls are something like https://example.com/svn/folder/project/trunk

If you don't set up a server and there are different types not just a web server, you use the file:// protocol id which means you are specifying the full path to the directory you're interested in.

Joe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic