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

Re: Recommended location of a repository and the working copy

From: Jack Repenning <jrepenning_at_collab.net>
Date: Fri, 5 Dec 2008 11:35:15 -0800

On Dec 5, 2008, at 2:16 AM, Angel Tsankov wrote:

> Hello,
>
> Sometimes I create a Subversion repository even for programs that I
> write for
> my own usage. In these cases, I wonder where to put the repo and the
> working copy. I usually hesitate between the following options:
>
> ...
>
> What locations would you recomment and why?

I'm not sure I follow your examples closely enough to pick among them,
but what I in fact do is this: I have a single repository for all this
kind of stuff. In fact, it archives the bulk of my home directory as
well. It's stored on my home computer, physically at /svn/myname and
accessible only via svn+ssh://user@hostname/svn/myname/ URLs. Projects
are stored in the repo at URLs like svn+ssh://user@host/svn/myname/
trunk/home/src/ProjectName/. My login directory on Unix-like systems
is checked out from svn+ssh://user@host/svn/myname/trunk/home/, and so
projects are checked out to my workstation (or any other computer) at
~/src/ProjectName/.

A simpler, single-computer arrangement (and what this boils down to
when I'm actually working on my home computer) would be

Repo Physical storage: /svn/myname
Repo URL: file:///svn/myname
Project URL: file:///svn/myname/home/src/Project

The /svn/ directory on my home computer is backed up frequently.

I do this because working copies and IDE project directories are, in
my view, ephemeral: I may remove them at any time, I may want several
(e.g., for different tasks or branches), I may want to use the cool
new SVN 1.5 sparse directory features so as not to check out
absolutely everything everywhere every time, and so on. Similarly,
repositories are just the opposite: eternal, critical for backup, one-
and-only-one-copy, and so on. The last thing in the world you'd want,
it seems to me, is to have the same admin policies for the repo and
one of its working copies!

-==-
Jack Repenning
jackrepenning_at_tigris.org
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=980289

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-08 10:41:09 CET

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

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