On Thu, Jan 13, 2011 at 11:37 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> David Weintraub wrote on Thu, Jan 13, 2011 at 11:19:54 -0500:
>> Are you using file:// URLs? You should either be using svnserve or
>> Apache httpd as your Subversion server. Fortunately, you can easily do
>> that without having to do anything with your repository. Even when I
>> have a personal Subversion repository and I'm the only user, I still
>> use svnserve.
>>
>
> I'm curious: why?
>
> Is it because you need authz, or run svnserve as a different user, or
> because you prefer to have a one-stop way to stop everything from
> accessing the repository, ...?
I hope you're asking me why, as the only user for my personal
repository, I'm accessing Subversion via svnserve and not via
"file://".
Several reasons:
* It's easier to refer to my repository as
svn://localhost/blah/blah/blah rather than
file:///users/david/some/directory/to/where/I/put/my/repository/if/I/can/remember/blah/blah/blah.
* It allows me to put my repository out of "harms way", so I don't do
anything stupid and destroy my work. Doing stupid things is my
specialty. I worked in the financial industry in fixed asset
securities (i.e. CDOs) when the financial collapse happened. Mere
coincidence? I think not.
* It makes it easy to give someone else needs access to my repository
when those occasions arise. And, I can give myself remote access when
needed.
* I can pretend to be two or more separate users. This isn't because I
suffer from some abnormal split personality disorder, but because I do
Subversion administration, and it allows me to test hook scripts of
various sorts and how Subversion handles various issues.
And, svnserve is easy enough and quick enough to setup that there's
really no reason not to.
Now, if you're asking about multiple users, the big reason is to keep
everyone's grubby fingers away from directly accessing the repository.
When you use file://, every one has read/write/damage/destroy/delete
access to your repository. Not a good thing to have.
--
David Weintraub
qazwart_at_gmail.com
Received on 2011-01-13 18:28:19 CET