0
votes

(Developing on Ubuntu)

I'm installing SVN locally to track my project up to its 1.0 release. Nothing fancy, as I am the sole developer, so no authentication/SSH, etc; nothing with webdav/httpd, etc. Just a plain old local server instance!

I've never done this before, so it finally dawned on me that I would have to manually start and stop svnserve anytime I want to commit any code to a repo.

I see that it is possible to configure inetd to dispatch svnserve as a service. Basically, inetd listens on a port you specify, and if it detects any svn traffic on that port, starts svnserve and passes the commands on to it; it looks like inetd also shuts down servers when they are not being used to conserve memory.

Any way, inetd or otherwise, to configure svn to start up when a local client tries to hit one of its repositories, and to shut back down automatically when it's done?

For the sake of my example, here are some pertinent URLs:

/usr/bin - where svn, svnadmin and svnserve are all installed
/opt/sandbox/svn/myProj - the location of myProj's repository

Thus the clients should be looking to connect to the server by hitting

svn://opt/sandbox/svn/myProj

Thanks for any ideas!

1

1 Answers

0
votes

You don't need a server. Just access the repository with file:///opt/sandbox/... instead of svn://. It's faster, too.

That said, Subversion is getting old. Try a DVCS. They are as easy to set up and it won't take you more than a minute to share your project later.