• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

SVN repo url

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 334
2
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This tiny ad will self destruct in five seconds.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic