You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Philippe Auphelle <pa...@wanadoo.fr> on 2005/02/17 16:59:19 UTC
Customizing default svnserve.conf file?
Hi,
I'm quite new to svn, but I did RTFM and FAQ. And I still have a couple
of questions (to begin with :) )
Is there a way to customize the svnserve.conf file that gets created at
"svnadmin create" time?
The default one gives read access to anonymous users, something that
gets us a bit nervous...
And while we're in that area, is there a way to config svn / svnserve so
that SVN users can create a new repository through svnserve / MD5, i.e.
without having to account-log onto the svn machine (or call an admin to
do it)?
TIA!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 18, 2005, at 10:59 AM, Philippe Auphelle wrote:
> Ben,
>
> > If you guys don't read the docs and don't understand the
> > basic concepts of SVN, I can't help you.
>
> We had previously RTFM, the whole 278 pages of it, plus the 87 pages
> from the TortoiseSVN manual, plus the 24 pages of the FAQ. I'm not
> claiming that we know it by heart nor that we fully understood
> everything and the implications, though. Preliminary RTFM is a
> necessary condition to understanding, but it's not a sufficient
> condition - thus my presence on this list.
Sorry, I didn't mean to sound snippy. I'm sure you guys have been
doing tons of reading, and there's a lot of stuff to digest.
>
> As I said before, my current understanding of what happened to us on
> our first use is that we checked out the whole repository from the
> root, while we only intented to checkout the head of the project.
In Subversion, the recommended best practice is that one defines a
"project root" as a specific directory than contains {trunk/,
branches/, tags/}.
The mapping of "project roots" to repositories isn't 1 to 1. You can
place as many project roots in a repository as you wish. Or, if you
want, you can place exactly one project root in each repository. It's
up to you.
Users are then told the URL to the project root -- and, assuming the
user understands SVN concepts, knows to 'svn checkout URL/trunk/' to
get the main codeline. An administrator is free to just include the
'trunk/' portion in the URL when handing it out to users, of course.
>
> What I have been trying to explain is that something like this simply
> couldn't happen with CVS using the similar TortoiseCVS interface, just
> because the only thing TortoiseCVS allows us to checkout with that
> setup is a single project - not a whole repository.
In TortoiseSVN, you would type in the proper URL, and get the trunk/ of
the project root. Whether than project-root its own repository, or
whether it's sitting in a repository with 5000 other project-roots, is
an implementation detail that the client cannot see.
In TortoiseSVN, the user is also free to browse the repository before
doing a checkout, as a way of interactively finding the project-root
URL. It's not quite as friendly as TortoiseCVS saying, "here's a list
of all modules, choose one" -- but if you place all of your
project-root directories at the top of your SVN repository, then
TortoiseSVN's "browsing" ability will show nearly the same sort of
friendly listing.
> Still using TortoiseCVS, I can also create subdirs, stuff a subproject
> into each subdir, and work at the subproject (subdir) level if I want
> it. And then, it's up to me to manage my directory tree, because if I
> damage my tree, CVS will record the damage and I'll have to get back
> somehow.
>
> So in this strict respect, the CVS "Project" (or "Module" as Tortoise
> calls it) appears to me as more or less the functional equivalent of
> the svn "Repository".
>
Not true. The CVS module is functionally identical to an SVN "project
root", which is just an ordinary directory in a repository. They both
offer exactly the same degree of project isolation. There is
absolutely no need to create a new svn repository for each project.
> IOW I don't really care whether our CVS keeps everything physically in
> a big repository, as long as *using the client interface*, I have the
> ability to use this project-by-project logical protection - or to not
> use it. This allows us to organise our projects the way we want it,
> and protect us from ourselves when we want it (by creating a separate
> project), so they live in different directory trees.
Create one big svn repository. Lay it out like this:
/
/project1/trunk
/branches
/tags
/project2/trunk
/branches
/tags
[...]
Then when your users use TortoiseSVN to browse the repository, they see
a listing like
project1/
project2/
[...]
It's essentially the same as seeing the list of CVS modules. They just
need to make sure to checkout the 'trunk' subdir below the
project-root, not the whole project-root.
Similarly, to start a new project, all client needs to do is create a
'projectN' direcotry at the root of the repository, and three empty
dirs below it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Philippe Auphelle <pa...@wanadoo.fr>.
Ben,
> If you guys don't read the docs and don't understand the
> basic concepts of SVN, I can't help you.
We had previously RTFM, the whole 278 pages of it, plus the 87 pages
from the TortoiseSVN manual, plus the 24 pages of the FAQ. I'm not
claiming that we know it by heart nor that we fully understood
everything and the implications, though. Preliminary RTFM is a necessary
condition to understanding, but it's not a sufficient condition - thus
my presence on this list.
As I said before, my current understanding of what happened to us on our
first use is that we checked out the whole repository from the root,
while we only intented to checkout the head of the project.
What I have been trying to explain is that something like this simply
couldn't happen with CVS using the similar TortoiseCVS interface, just
because the only thing TortoiseCVS allows us to checkout with that setup
is a single project - not a whole repository.
Still using TortoiseCVS, I can also create subdirs, stuff a subproject
into each subdir, and work at the subproject (subdir) level if I want
it. And then, it's up to me to manage my directory tree, because if I
damage my tree, CVS will record the damage and I'll have to get back
somehow.
So in this strict respect, the CVS "Project" (or "Module" as Tortoise
calls it) appears to me as more or less the functional equivalent of the
svn "Repository".
IOW I don't really care whether our CVS keeps everything physically in a
big repository, as long as *using the client interface*, I have the
ability to use this project-by-project logical protection - or to not
use it. This allows us to organise our projects the way we want it, and
protect us from ourselves when we want it (by creating a separate
project), so they live in different directory trees.
To get a similar fonctionnal level of protection with svn, I have to
create a separate repository.
Which requires that I login to the Linux machine, because svn doesn't
allow me to do it using the client tools.
Which also requires that I remember about setting FSFS and fix the
svnserve.conf file, or that I create specific scripts and that everyone
remembers to use them for repository creation.
Or which requires that one of us becomes "administrator" and takes
responsability for that delicate stuff.
So in our context and in that strict respect, svn looks a bit less
convenient to us than what we are used to.
This doesn't mean we do not appreciate the numerous things that svn does
and that CVS doesn't even come near. Simply, the organisation of the
team and team work is an important factor, and I needed to make real
sure I wasn't missing something, like a workaround for that problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Steve Greenland <st...@lsli.com>.
On Fri, Feb 18, 2005 at 11:04:12AM -0500, Jean-Pierre Sevigny wrote:
> If our setup is to have 1 repository per project, how can people create
> new projects? Do they need the admin to create the repo first?
Yes. If that's what you want to do, then the admin needs to create the
repo.
Steve
--
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
-- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Philippe Auphelle <pa...@wanadoo.fr>.
Jean-Pierre,
> If our setup is to have 1 repository per project, how can
> people create new projects?
- By using svnadmin on the svn machine
> Do they need the admin to create the repo first?
- Yes.
We don't like it too much, but that's the way it is. /Ph.
Jean-Pierre Sevigny wrote:
>
> Reading this, i have a question:
> If our setup is to have 1 repository per project, how can people create
> new projects? Do they need the admin to create the repo first?
>
> I prefer having 1 repository per project, as it is easier to admin, if
> one repo gets corrupted, etc.
>
> JP
>
>> On Feb 18, 2005, at 8:38 AM, Philippe Auphelle wrote:
>>
>>> > CVS allows remote users to effortlessly create new repositories on the
>>> > server? That's news to me. ;-)
>>>
>>> :)
>>> Weeeeeellll... As far as we're concerned, a single repository is all
>>> it takes with CVS: TortoiseCVS allows us (users!) to create a fully
>>> independant project in the CVS repository thru its one-click "Make
>>> New Module" command.
>>
>>
>>
>> What? So all your existing CVS projects *are* in one big CVS
>> repository already! Every project lives in a separate directory of
>> the CVS repository.
>>
>> In Subversion, you'd do the exact same thing. There's no magic button
>> called "create module". All you need to do is create a new directory
>> in the repository, and declare it (through human imagination) to be a
>> new project. It's just as "fully independent" as any CVS project.
>> When you checkout a CVS 'module', you get a working copy of exactly 1
>> directory in the CVS repository. When you checkout a SVN project
>> (URL), you get exactly 1 directory in the SVN repository. There's no
>> difference here at all. In both CVS and SVN, each "project" is just a
>> directory in the repository. Very simple.
>>
>>> And even though I'm far from being a hardcore CVS specialist, no
>>> Tortoise checkout I know of will let me inadvertently get all the
>>> projects, and trunks, and branches and tags repositorywide on my
>>> local disk at once!
>>
>>
>>
>> That's because CVS stores branches is an a separate dimension, whereas
>> SVN represents branches as ordinary directories. So, "don't do
>> that". Don't checkout the project/branches/ dir, don't checkout the
>> project/tags/ dir. *Do* checkout the project/trunk/ dir.
>>
>>
>>> IOW, those are two CVS features we like because they allow us to
>>> 1) Be independant (look ma', no admin!)
>>> 2) Better protect ourselves against ourselves.
>>>
>>
>> I fail to see any difference between SVN and CVS in this regard. A
>> "project" directory in a CVS repository is just as "independent" and
>> "protected" from other projects as a "project" directory in an SVN
>> repository.
>>
>>
>>> > Well, duh... don't checkout the root of the repository. (That's
>>> > always a horrible idea, since you'd end up getting a copy of every
>>> > branch and tag!)
>>>
>>> I admit we are biased on this one:
>>> On the very first test we did after installing svn and converting a
>>> test CVS project, that's exactly what we did using TortoiseSVN (cuz
>>> it looked natural to do so at the time!). We of course got precisely
>>> the 'great' results you mention :-) ...
>>
>>
>>
>> If you guys don't read the docs and don't understand the basic
>> concepts of SVN, I can't help you. You're right, SVN isn't 100%
>> identical to CVS. If you start blindly using SVN assuming it's a
>> complete drop-in transparent replacement for CVS, you're going to get
>> burned. Read the book, learn the subtle differences, make tiny
>> adaptations. :-)
>>
>>
>>
>>>
>>> > "Inadvertent alteration"? That's why access control exists. And
>>> > besides, even if somebody accidentally commits to the wrong place, you
>>> > just undo the change. That's the whole point of version control,
>>> > right?
>>>
>>> Hmm, so far, we have only been thinking about protecting ourselves
>>> from not-so-inadvertent-alteration while trying to implement stuff.
>>> I sure like the idea of being able to create as a user new
>>> independant "containers" for my project(s) better than that of using
>>> a single source tree for (mostly) everything.
>>
>>
>>
>> Yes, these 'containers' are called directories. They live in the
>> repository. You're already doing this for your CVS projects.
>>
>>
>>> But among the non-imaginary topics, we definitly think svn makes it a
>>> bit too hard on the admin:
>>> Not having a way to spec the default fs-type falls in the same
>>> category as not being able to spec a default svnserve.conf template
>>> over the hard-coded default one: Just yet another possible cause for
>>> an administrator mistake! (in case you didn't guess, we decided to
>>> use FSFS)
>>> Not to mention the impossibility for the admin to delegate repository
>>> creation to users through the plain svn client interface, of course :-^)
>>
>>
>>
>> I think we're talking in circles now. Here's my recap of the
>> conversation:
>>
>> Q: We want users to be able to create separate repositories for their
>> projects.
>> A: Not possible.
>> Q: But CVS lets us do that!
>> A: No it doesn't.
>> Q: Sure it does, users just create a new module.
>> A: Ah, so then all your projects are in *one* big CVS repository.
>> Your users are simply creating new directories in the repository.
>> Sure, SVN can do the exact same thing. You're all set.
>> Q: But... SVN doesn't make it easy to create new repositories!
>>
>> ??
>> ...so, uh, I'm at a loss here. Maybe mail this has cleared things up.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Jean-Pierre Sevigny <jp...@zingy.com>.
Reading this, i have a question:
If our setup is to have 1 repository per project, how can people create
new projects? Do they need the admin to create the repo first?
I prefer having 1 repository per project, as it is easier to admin, if
one repo gets corrupted, etc.
JP
> On Feb 18, 2005, at 8:38 AM, Philippe Auphelle wrote:
>
>> > CVS allows remote users to effortlessly create new repositories on the
>> > server? That's news to me. ;-)
>>
>> :)
>> Weeeeeellll... As far as we're concerned, a single repository is all
>> it takes with CVS: TortoiseCVS allows us (users!) to create a fully
>> independant project in the CVS repository thru its one-click "Make
>> New Module" command.
>
>
> What? So all your existing CVS projects *are* in one big CVS
> repository already! Every project lives in a separate directory of
> the CVS repository.
>
> In Subversion, you'd do the exact same thing. There's no magic button
> called "create module". All you need to do is create a new directory
> in the repository, and declare it (through human imagination) to be a
> new project. It's just as "fully independent" as any CVS project.
> When you checkout a CVS 'module', you get a working copy of exactly 1
> directory in the CVS repository. When you checkout a SVN project
> (URL), you get exactly 1 directory in the SVN repository. There's no
> difference here at all. In both CVS and SVN, each "project" is just a
> directory in the repository. Very simple.
>
>> And even though I'm far from being a hardcore CVS specialist, no
>> Tortoise checkout I know of will let me inadvertently get all the
>> projects, and trunks, and branches and tags repositorywide on my
>> local disk at once!
>
>
> That's because CVS stores branches is an a separate dimension, whereas
> SVN represents branches as ordinary directories. So, "don't do
> that". Don't checkout the project/branches/ dir, don't checkout the
> project/tags/ dir. *Do* checkout the project/trunk/ dir.
>
>
>> IOW, those are two CVS features we like because they allow us to
>> 1) Be independant (look ma', no admin!)
>> 2) Better protect ourselves against ourselves.
>>
>
> I fail to see any difference between SVN and CVS in this regard. A
> "project" directory in a CVS repository is just as "independent" and
> "protected" from other projects as a "project" directory in an SVN
> repository.
>
>
>> > Well, duh... don't checkout the root of the repository. (That's
>> > always a horrible idea, since you'd end up getting a copy of every
>> > branch and tag!)
>>
>> I admit we are biased on this one:
>> On the very first test we did after installing svn and converting a
>> test CVS project, that's exactly what we did using TortoiseSVN (cuz
>> it looked natural to do so at the time!). We of course got precisely
>> the 'great' results you mention :-) ...
>
>
> If you guys don't read the docs and don't understand the basic
> concepts of SVN, I can't help you. You're right, SVN isn't 100%
> identical to CVS. If you start blindly using SVN assuming it's a
> complete drop-in transparent replacement for CVS, you're going to get
> burned. Read the book, learn the subtle differences, make tiny
> adaptations. :-)
>
>
>
>>
>> > "Inadvertent alteration"? That's why access control exists. And
>> > besides, even if somebody accidentally commits to the wrong place, you
>> > just undo the change. That's the whole point of version control,
>> > right?
>>
>> Hmm, so far, we have only been thinking about protecting ourselves
>> from not-so-inadvertent-alteration while trying to implement stuff.
>> I sure like the idea of being able to create as a user new
>> independant "containers" for my project(s) better than that of using
>> a single source tree for (mostly) everything.
>
>
> Yes, these 'containers' are called directories. They live in the
> repository. You're already doing this for your CVS projects.
>
>
>> But among the non-imaginary topics, we definitly think svn makes it a
>> bit too hard on the admin:
>> Not having a way to spec the default fs-type falls in the same
>> category as not being able to spec a default svnserve.conf template
>> over the hard-coded default one: Just yet another possible cause for
>> an administrator mistake! (in case you didn't guess, we decided to
>> use FSFS)
>> Not to mention the impossibility for the admin to delegate repository
>> creation to users through the plain svn client interface, of course :-^)
>
>
> I think we're talking in circles now. Here's my recap of the
> conversation:
>
> Q: We want users to be able to create separate repositories for their
> projects.
> A: Not possible.
> Q: But CVS lets us do that!
> A: No it doesn't.
> Q: Sure it does, users just create a new module.
> A: Ah, so then all your projects are in *one* big CVS repository.
> Your users are simply creating new directories in the repository.
> Sure, SVN can do the exact same thing. You're all set.
> Q: But... SVN doesn't make it easy to create new repositories!
>
> ??
> ...so, uh, I'm at a loss here. Maybe mail this has cleared things up.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 21, 2005, at 2:14 AM, Philippe Auphelle wrote:
> Ben,
>
> We are going to build our experience by playing with all that.
>
> OTOH, I think Robert Hunter has a good point in his follow-up message
> "Checking out project root accidentally (was RE: Customizing default
> svnserve.conf file?)".
>
I agree, Robert's suggestion might be good for TortoiseSVN.
There's a sort of sliding scale in terms of how much "UI sugar coating"
a client puts around svn concepts, and it's very much a matter of
taste.
The commandline client has no coating at all: it expects users to
understand that a project root usually has three subdirectories, and
that branches and tags are just directories created via 'svn copy'.
TortoiseSVN already does a bit more handholding: unlike the
commandline client, it has explicit "branch" and "tag". So in that
same spirit, it might be nice to see commands to "create a project
root" or "checkout from a project root" (and grab project/trunk/
automatically).
I don't track the TortoiseSVN lists, but I hope you or Robert pass
those suggestions on those developers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Philippe Auphelle <pa...@wanadoo.fr>.
Ben,
We are going to build our experience by playing with all that.
OTOH, I think Robert Hunter has a good point in his follow-up message
"Checking out project root accidentally (was RE: Customizing default
svnserve.conf file?)".
Thanks for your detailed explainations, anyway.
That will undoubtedly help us.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 18, 2005, at 8:38 AM, Philippe Auphelle wrote:
> > CVS allows remote users to effortlessly create new repositories on
> the
> > server? That's news to me. ;-)
>
> :)
> Weeeeeellll... As far as we're concerned, a single repository is all
> it takes with CVS: TortoiseCVS allows us (users!) to create a fully
> independant project in the CVS repository thru its one-click "Make New
> Module" command.
What? So all your existing CVS projects *are* in one big CVS
repository already! Every project lives in a separate directory of the
CVS repository.
In Subversion, you'd do the exact same thing. There's no magic button
called "create module". All you need to do is create a new directory
in the repository, and declare it (through human imagination) to be a
new project. It's just as "fully independent" as any CVS project.
When you checkout a CVS 'module', you get a working copy of exactly 1
directory in the CVS repository. When you checkout a SVN project
(URL), you get exactly 1 directory in the SVN repository. There's no
difference here at all. In both CVS and SVN, each "project" is just a
directory in the repository. Very simple.
> And even though I'm far from being a hardcore CVS specialist, no
> Tortoise checkout I know of will let me inadvertently get all the
> projects, and trunks, and branches and tags repositorywide on my local
> disk at once!
That's because CVS stores branches is an a separate dimension, whereas
SVN represents branches as ordinary directories. So, "don't do that".
Don't checkout the project/branches/ dir, don't checkout the
project/tags/ dir. *Do* checkout the project/trunk/ dir.
> IOW, those are two CVS features we like because they allow us to
> 1) Be independant (look ma', no admin!)
> 2) Better protect ourselves against ourselves.
>
I fail to see any difference between SVN and CVS in this regard. A
"project" directory in a CVS repository is just as "independent" and
"protected" from other projects as a "project" directory in an SVN
repository.
> > Well, duh... don't checkout the root of the repository. (That's
> > always a horrible idea, since you'd end up getting a copy of every
> > branch and tag!)
>
> I admit we are biased on this one:
> On the very first test we did after installing svn and converting a
> test CVS project, that's exactly what we did using TortoiseSVN (cuz it
> looked natural to do so at the time!). We of course got precisely the
> 'great' results you mention :-) ...
If you guys don't read the docs and don't understand the basic concepts
of SVN, I can't help you. You're right, SVN isn't 100% identical to
CVS. If you start blindly using SVN assuming it's a complete drop-in
transparent replacement for CVS, you're going to get burned. Read the
book, learn the subtle differences, make tiny adaptations. :-)
>
> > "Inadvertent alteration"? That's why access control exists. And
> > besides, even if somebody accidentally commits to the wrong place,
> you
> > just undo the change. That's the whole point of version control,
> > right?
>
> Hmm, so far, we have only been thinking about protecting ourselves
> from not-so-inadvertent-alteration while trying to implement stuff.
> I sure like the idea of being able to create as a user new independant
> "containers" for my project(s) better than that of using a single
> source tree for (mostly) everything.
Yes, these 'containers' are called directories. They live in the
repository. You're already doing this for your CVS projects.
> But among the non-imaginary topics, we definitly think svn makes it a
> bit too hard on the admin:
> Not having a way to spec the default fs-type falls in the same
> category as not being able to spec a default svnserve.conf template
> over the hard-coded default one: Just yet another possible cause for
> an administrator mistake! (in case you didn't guess, we decided to use
> FSFS)
> Not to mention the impossibility for the admin to delegate repository
> creation to users through the plain svn client interface, of course
> :-^)
I think we're talking in circles now. Here's my recap of the
conversation:
Q: We want users to be able to create separate repositories for their
projects.
A: Not possible.
Q: But CVS lets us do that!
A: No it doesn't.
Q: Sure it does, users just create a new module.
A: Ah, so then all your projects are in *one* big CVS repository.
Your users are simply creating new directories in the repository.
Sure, SVN can do the exact same thing. You're all set.
Q: But... SVN doesn't make it easy to create new repositories!
??
...so, uh, I'm at a loss here. Maybe mail this has cleared things up.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Philippe Auphelle <pa...@wanadoo.fr>.
> CVS allows remote users to effortlessly create new repositories on the
> server? That's news to me. ;-)
:)
Weeeeeellll... As far as we're concerned, a single repository is all it
takes with CVS: TortoiseCVS allows us (users!) to create a fully
independant project in the CVS repository thru its one-click "Make New
Module" command.
And even though I'm far from being a hardcore CVS specialist, no
Tortoise checkout I know of will let me inadvertently get all the
projects, and trunks, and branches and tags repositorywide on my local
disk at once!
IOW, those are two CVS features we like because they allow us to
1) Be independant (look ma', no admin!)
2) Better protect ourselves against ourselves.
> Well, duh... don't checkout the root of the repository. (That's
> always a horrible idea, since you'd end up getting a copy of every
> branch and tag!)
I admit we are biased on this one:
On the very first test we did after installing svn and converting a test
CVS project, that's exactly what we did using TortoiseSVN (cuz it looked
natural to do so at the time!). We of course got precisely the 'great'
results you mention :-) ...
> "Inadvertent alteration"? That's why access control exists. And
> besides, even if somebody accidentally commits to the wrong place, you
> just undo the change. That's the whole point of version control,
> right?
Hmm, so far, we have only been thinking about protecting ourselves from
not-so-inadvertent-alteration while trying to implement stuff.
I sure like the idea of being able to create as a user new independant
"containers" for my project(s) better than that of using a single source
tree for (mostly) everything.
> I think you're inventing imaginary problems here. :-)
There is always some truth to that, specially since we're considering
moving from the devil we know to the one we don't! The problem is
figuring out what's imaginary (or rather due to ignorance, in this case)
from what is not. You're helping me, there.
But among the non-imaginary topics, we definitly think svn makes it a
bit too hard on the admin:
Not having a way to spec the default fs-type falls in the same category
as not being able to spec a default svnserve.conf template over the
hard-coded default one: Just yet another possible cause for an
administrator mistake! (in case you didn't guess, we decided to use FSFS)
Not to mention the impossibility for the admin to delegate repository
creation to users through the plain svn client interface, of course :-^)
We're gonna keep on testing harder (doing it the way you suggest), and
see how we feel in the end.
Thanks again!
Ben Collins-Sussman wrote:
>
> On Feb 18, 2005, at 2:55 AM, Philippe Auphelle wrote:
>
>>
>> Anyway, since that's not the way svn works, and since we are still in
>> the study phase, I guess we'll have to either do with it or stick with
>> CVS.
>
>
> CVS allows remote users to effortlessly create new repositories on the
> server? That's news to me. ;-)
>
>>
>>> Maybe a better idea is: make one big repository. Users can start new
>>> projects by creating new directories in the repository.
>>
>>
>> We considered that, but from what I know of svn (please correct me if
>> I'm wrong), we are worried by at least three aspects:
>>
>> 1) It goes against the rule of thumb (FAQ) that says "If the projects
>> are related, and are likely to share data, then it's best to create one
>> repository with several subdirectory". Here, lotsa projects are small
>> unrelated.
>
>
> Projects that live in a single repository don't *have* to share data.
> It just opens up the possibility, that's all.
>
>> 2) Any straight repository checkout will bring the whole repository
>> while just a specific project (subdir) is actually needed
>
>
> Well, duh... don't checkout the root of the repository. (That's always
> a horrible idea, since you'd end up getting a copy of every branch and
> tag!)
>
> Remember that 'svn checkout' takes a URL argument. Every project would
> still have a unique URL, whether they all live in separate repositories
> or in one big repository.
>
>> 3) Separate repositories insures against inadvertent alteration of the
>> tree for project A by someone working on unrelated project B.
>>
>
> "Inadvertent alteration"? That's why access control exists. And
> besides, even if somebody accidentally commits to the wrong place, you
> just undo the change. That's the whole point of version control, right?
>
> I think you're inventing imaginary problems here. :-)
>
> Look at the ASF repository: http://svn.apache.org/repos/asf
>
> Dozens of projects living in one repository, happily ignoring each
> other. Once in a great while, a project gets renamed, or moved from the
> "incubator" area to a full-fledged project. No problems at all.
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 18, 2005, at 2:55 AM, Philippe Auphelle wrote:
>
> Anyway, since that's not the way svn works, and since we are still in
> the study phase, I guess we'll have to either do with it or stick with
> CVS.
CVS allows remote users to effortlessly create new repositories on the
server? That's news to me. ;-)
>
>> Maybe a better idea is: make one big repository. Users can start new
>> projects by creating new directories in the repository.
>
> We considered that, but from what I know of svn (please correct me if
> I'm wrong), we are worried by at least three aspects:
>
> 1) It goes against the rule of thumb (FAQ) that says "If the projects
> are related, and are likely to share data, then it's best to create one
> repository with several subdirectory". Here, lotsa projects are small
> unrelated.
Projects that live in a single repository don't *have* to share data.
It just opens up the possibility, that's all.
> 2) Any straight repository checkout will bring the whole repository
> while just a specific project (subdir) is actually needed
Well, duh... don't checkout the root of the repository. (That's always
a horrible idea, since you'd end up getting a copy of every branch and
tag!)
Remember that 'svn checkout' takes a URL argument. Every project would
still have a unique URL, whether they all live in separate repositories
or in one big repository.
> 3) Separate repositories insures against inadvertent alteration of the
> tree for project A by someone working on unrelated project B.
>
"Inadvertent alteration"? That's why access control exists. And
besides, even if somebody accidentally commits to the wrong place, you
just undo the change. That's the whole point of version control,
right?
I think you're inventing imaginary problems here. :-)
Look at the ASF repository: http://svn.apache.org/repos/asf
Dozens of projects living in one repository, happily ignoring each
other. Once in a great while, a project gets renamed, or moved from
the "incubator" area to a full-fledged project. No problems at all.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Philippe Auphelle <pa...@wanadoo.fr>.
Ben,
Thanks for your help.
> Subversion was designed with the assumption that creating a new
> repository is a Big Deal:
Shoot, that's just what I feared :-(
Doesn't work too well in our context, where
- developers are born equal (yet not all with a "server manager" state
of mind),
- quite a few projects are small and unrelated, and
- a few others are big with about everyone involved.
In that context, we'd rather have repository creation made possible from
the user side with just the right (most restrictive) defaults, e.g. in
our case: read/write rights to the repository creator but no one else.
That would make the safe side implicit, rather than have to rely on the
creator to log onto the svn machine, create the repository, and remember
about properly tweaking the svnserver.conf file.
Whoever feels like an "svn admin" would then only have to check the svn
tree once in a while for check up, clean up and maintenance.
In our case, developers currently hardly ever log to the scm machine.
They don't even really need their own ssh account there, just an scm
access through the scm tools.
Anyway, since that's not the way svn works, and since we are still in
the study phase, I guess we'll have to either do with it or stick with CVS.
> Maybe a better idea is: make one big repository. Users can start new
> projects by creating new directories in the repository.
We considered that, but from what I know of svn (please correct me if
I'm wrong), we are worried by at least three aspects:
1) It goes against the rule of thumb (FAQ) that says "If the projects
are related, and are likely to share data, then it's best to create one
repository with several subdirectory". Here, lotsa projects are small
unrelated.
2) Any straight repository checkout will bring the whole repository
while just a specific project (subdir) is actually needed
3) Separate repositories insures against inadvertent alteration of the
tree for project A by someone working on unrelated project B.
Hmmmm...
Ben Collins-Sussman wrote:
>
> On Feb 17, 2005, at 10:59 AM, Philippe Auphelle wrote:
>
>> Hi,
>>
>> I'm quite new to svn, but I did RTFM and FAQ. And I still have a
>> couple of questions (to begin with :) )
>>
>> Is there a way to customize the svnserve.conf file that gets created at
>> "svnadmin create" time?
>> The default one gives read access to anonymous users, something that
>> gets us a bit nervous...
>>
>> And while we're in that area, is there a way to config svn / svnserve so
>> that SVN users can create a new repository through svnserve / MD5, i.e.
>> without having to account-log onto the svn machine (or call an admin
>> to do it)?
>>
>
> Subversion was designed with the assumption that creating a new
> repository is a Big Deal: that it doesn't happen very often, and that
> when it does happen, it's something done entirely by a server
> administrator. It's assumed that the admin will then take the time to
> configure the new repository carefully and correctly -- by tweaking
> svnserve.conf, tweaking httpd.conf, setting up access permissions, and
> so on.
>
> So no, repositories weren't meant to be tiny lightweight things that can
> easily pop into existence whenever a user hits a button. You could
> certainly write CGI scripts to do such a thing, but it seems a bit
> reckless.
>
> Maybe a better idea is: make one big repository. Users can start new
> projects by creating new directories in the repository.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Customizing default svnserve.conf file?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 17, 2005, at 10:59 AM, Philippe Auphelle wrote:
> Hi,
>
> I'm quite new to svn, but I did RTFM and FAQ. And I still have a
> couple of questions (to begin with :) )
>
> Is there a way to customize the svnserve.conf file that gets created at
> "svnadmin create" time?
> The default one gives read access to anonymous users, something that
> gets us a bit nervous...
>
> And while we're in that area, is there a way to config svn / svnserve
> so
> that SVN users can create a new repository through svnserve / MD5, i.e.
> without having to account-log onto the svn machine (or call an admin
> to do it)?
>
Subversion was designed with the assumption that creating a new
repository is a Big Deal: that it doesn't happen very often, and that
when it does happen, it's something done entirely by a server
administrator. It's assumed that the admin will then take the time to
configure the new repository carefully and correctly -- by tweaking
svnserve.conf, tweaking httpd.conf, setting up access permissions, and
so on.
So no, repositories weren't meant to be tiny lightweight things that
can easily pop into existence whenever a user hits a button. You could
certainly write CGI scripts to do such a thing, but it seems a bit
reckless.
Maybe a better idea is: make one big repository. Users can start new
projects by creating new directories in the repository.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org