[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] RE:n00b: quickstart guide for subclipse?

From: Jim Willis <jwillis_at_arixto.com>
Date: 2006-12-08 23:10:06 CET

I also suffered getting my first repository done. If you are in the Windows
Environment, then TortoiseSVN is almost a requirement. It is a very
powerful SVN front end. I also use SVNService to run the svnserve as a
windows service.

 My Preferences:
** I create seperate repositories for each of my clients. Very helpful for
backup and distribution. I can send a client their repository. It is my
balance between one big repo or one repo per project.

** I don't allow anonymous access and force a user name on the writes
(allows my to track subcontractors)

** Network based access not the File, even on a single machine as eventually
I need to access them remotely.

** I use a VPN for security over the internet, mostly because I don't know
how or have had time to try svn+ssl: I built and apache/web based
repository once, but it was too much hassle.

This is a quick list of my setup. I don't do this very often, so here is a
quick attempt, I hope that I have it right.

1) create the repositories
> mkdir c:\repos.svn
> mkdir c:\repos.svn\repo1
>svnadmin create --fs-type fsfs c:\repos.svn\repo1

(optional Additional for each client)
> mkdir c:\repos.svn\repo2
>svnadmin create --fs-type fsfs c:\repos.svn\repo1

// You can test the repository with TortoseSVN now using its browser

2) Configure the svnserve
> create the file c:\repos.svn\users.db with the following:
[users]
jwillis=mypassword
subcontract1 = hispassword
subcontract2 = hisotherpassword

>edit c:\repos.svn\repo1\conf\svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = ..\..\users.db
realm = repo1

 (optional) 2a) Import a structure into the repository
>mkdir c:\scratch
>mkdir c:\scratch\repo1
>mkdir c:\scratch\repo1\TRUNK
>mkdir c:\scratch\repo1\RELEASES
>mkdir c:\scratch\repo1\BRANCHES
>svn import -m "First Repo" c:\scratch\repo1 svn://localhost/repo1

3) Test the repoistories Launch the svnserve to test
> svnserve -r c:\repos.svn
//You should now be able to view the repository with Eclipse or TortoseSVN
using the url "svn://localhost/repo1"
> control-c to kill daemon.

4) Configure SVNService for Win32 usage (SVNService is a seperate download)
SVNService --install -r c:\repos.svn

5) backup the repository (I use the cygwin zip for now)
> svnadmin dump c:\repos.svn\repo1 | c:\backup\repos\repo1.current.svn.zip -
 // notice the final dash, tells zip to zip from the stream.

(optional) > ftp the backup to the client site so their $15K backup tape
library and software will take care of it for you!! :)

6) Eclipse Viewing
In SVN Repository view, click "Add SVN Repository" (last button in view
toolbar)
use url (no quotes) "svn://localhost/repo1" and besure to save the password
otherwise you will be typing over and over.

You should now beable to browse the Repository.

I hope this helps (or even works).

Anyone Feel free to comment or to add. I needed to document this process
anyway.

-Jim

> From: "Terence Kearns" <devhed@gmail.com>
> To: users@subclipse.tigris.org
> Date: Fri, 8 Dec 2006 03:41:16 +1100
> Subject: n00b: quickstart guide for subclipse?
> Hi there,
>
> I've been using CVS with Eclipse for years now and I need to make the
> transition to eclipse for an important new project I am urgently
> working on.
>
> Unfortunately, I am not getting much gratification with information
> for subclipse. Surely I don't have to read the entire book on SVN just
> to get up and running in a day (given I already have experience with
> version control).
>
> I followed all the instructions and opted to use the setup.exe version
> of eclipse to deploy to my Windows XP development machine (where
> exlipse is also installed). I then followed the instructions to have
> subclipse installed into eclipse.
>
> All versions are the latest stable versions at the time of writing.
>
> I followed the instructions in chapter 1 (A quick start) and created a
> new repository
> http://svnbook.red-bean.com/nightly/en/svn.intro.quickstart.html
> I even ran the following google search to try and find info for subclipse
> "subclipse site:svnbook.red-bean.com"
>
> Alas, I still am at a loss to work out how I am supposed to access
> this new repository (created from "A Quick Start") using subclipse. My
> repository is located at f:\SVN_repos, but when I put this into the
> URL field, I get an error. OK so I managed to work out that I have to
> go through the seemingly unnecessary overhead of setting some network
> layer up to communicate with my local repository (booooh)
> :(
> And as expected, this was gonna require a whole other layer of grief
> too. Apparently the collabnet install routine I ran handily added the
> following lines to
> LoadModule dav_svn_module "c:/Program Files/Subversion/bin/mod_dav_svn.so"
> LoadModule authz_svn_module "c:/Program
> Files/Subversion/bin/mod_authz_svn.so"
> Which is all great, but then apache reports them as syntax errors and
> refuses to start. the syntax errors go away when I comment the lines
> out. According to the panacea that is Google, I am the only persion on
> the Internet to ever publish the string "Syntax error on line 175 of
> C:/Program Files/Apache Group/Apache2/conf/httpd.conf" (with
> everything from 175 truncated) I can't figure this out, and I really
> don't want to have to. Please tell me I don't have to :(
>
> Surely subclipse can just use the local repository?
>
> I READ THE ENTIRE FAQ at
> http://subclipse.tigris.org/faq.html
> And it was no use at all other than to say something about
> "JavaSVN does not currently support the file:// protocol but there are
> plans to add support for accessing fsfs repositories in the future."
>
> I'm assuming what I want is an FSFS connection to my repository?
> (FSFS looks suspciciously like it could stand for File System Filing
> System which looks suspiciously like it might mean "you connect to
> your repository locally - without a network layer")
>
> I tried scanning through all the settings in Team/SVN preferences in
> eclipse but there didn't seem to be a way to set it to the
> command-line interface or anything useful like that.
>
> Does anyone have a tutorial out there which shows how to get up and
> running with subclipse quickly without assuming a whole bunch of
> knowledge which needs to be agregated from all corners of the Intenet?
>
> Sorry, I'm just having a really bad night. I HATE not being able to
> figure stuff out after putting in so much effort. No one's fault :/
> I'm sure someone will tell me how horribly stupid I've been and how I
> should have done this and read that and how I should have just "known"
> some particular thing, or how my approach to learning stuff if all
> wrong :/
>
>
Received on Fri Dec 8 23:10:16 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.