You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Martin J. Evans" <ma...@easysoft.com> on 2004/06/04 12:47:12 UTC
Enhancement suggestion for svnadmin create and default hook files
svnadmin should allow .tmpl hook files placed in new repos to come from real
files instead of being hard-wired in repos.c
We have created some hooks based on the template files and want them placed in
all new repositories. Unfortunately I've discovered the xxx.tmpl files are
created from code in repos.c. It would be much nicer if svnadmin create could
pull the files placed in the hooks dir from a predefined place and in that way
you could create your hooks, copy them to the place where svnadmin gets them
from and then all svnadmin creates would get the same hooks. The net result for
anyone not wanting this would be no different - they just don't change the files
svnadmin uses for the create.
Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Enhancement suggestion for svnadmin create and default hook files
Posted by "C. Michael Pilato" <cm...@collab.net>.
"Max Bowsher" <ma...@ukf.net> writes:
> > I've read that people create a template repository with the right
> > hooks and initial structure in place. When they need a new
> > repository, instead of running svnadmin, they copy the template
> > repository.
>
> Won't that cause duplicate repository UUIDs?
Yes. But that's easily remedied:
$ cp -a template-repos new-repos
$ rm new-repos/db/uuids
$ svnadmin recover new-repos
NOTE: This is not to be considered recommended behavior.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Enhancement suggestion for svnadmin create and default hook files
Posted by Max Bowsher <ma...@ukf.net>.
Erik Huelsmann wrote:
> Hi,
>
>> svnadmin should allow .tmpl hook files placed in new repos to come from
>> real files instead of being hard-wired in repos.c
>>
>> We have created some hooks based on the template files and want them
>> placed in all new repositories.
>
>
> I've read that people create a template repository with the right hooks
and
> initial structure in place. When they need a new repository, instead of
> running svnadmin, they copy the template repository.
Won't that cause duplicate repository UUIDs?
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Enhancement suggestion for svnadmin create and default hook files
Posted by Erik Huelsmann <e....@gmx.net>.
Hi,
> svnadmin should allow .tmpl hook files placed in new repos to come from
> real files instead of being hard-wired in repos.c
>
> We have created some hooks based on the template files and want them
> placed in all new repositories.
I've read that people create a template repository with the right hooks and
initial structure in place. When they need a new repository, instead of
running svnadmin, they copy the template repository.
HTH,
Erik.
--
+++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org