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

Re: Automating svn:keywords

From: Bruce Elrick <bruce_at_elrick.ca>
Date: 2004-03-04 00:04:13 CET

I believe you could use a pre-commit hook to reject commits that
violated some standard. See pre-commit.tmpl where it uses svnlook to
view the current transaction ... since svnlook allows examination of the
properties, you could do some enforcement there. You are limited to
rejecting commits, but can use decent enough error messages, though, to
let you user know what not to do.

Cheers...
Bruce

Rob van Oostrum wrote:

> Just curious ... is there anyway to configure these things on the
> server-side? I can see the case for different developers wanting different
> things, but as an adminstrator, I would like to be able to go to one place
> to enforce standards ... any ideas short of distributing a config file and
> making sure developers are using it with their clients?
>
> I tried editing the config of the user that runs apache (which calls SVN) on
> the server, but as I would expect that didn't do the trick.
>
> thanks
> Rob
>
>
>>-----Original Message-----
>>From: Marcus Vinicius Ferreira [mailto:marcus_ferreira@yahoo.com]
>>Sent: Wednesday, March 03, 2004 4:19 PM
>>To: users@subversion.tigris.org
>>Subject: Re: Automating svn:keywords
>>
>>
>>Mr. Pilato,
>>
>>
>>That's right!
>>(I tried single and double quotes before, but not to take them off)
>>
>>All files were added successfully.
>>
>>
>>Thanks.
>>
>>
>>
>>--- "C. Michael Pilato" <cmpilato@collab.net> wrote:
>>
>>>Marcus Vinicius Ferreira <marcus_ferreira@yahoo.com> writes:
>>>
>>>
>>>>Hello,
>>>>
>>>>
>>>>I would like to have an automatic set of the keywords
>>
>>$Id$ and $Author$ on
>>
>>>my
>>>
>>>>repository files -- much like what CVS does by nature.
>>>>
>>>>Modifying my ~/.subversion/config with these settings has
>>
>>no effect:
>>
>>>>______________________________________________________________
>>>>
>>>> enable-auto-props = yes
>>>>
>>>> [auto-props]
>>>> *.c = svn:eol-style=native;svn:keywords="Id Author"
>>>
>>>Lose the quotation marks. Also, understand that this will
>>
>>only effect
>>
>>>newly added or imported *.c files -- not ones already in your tree.
>>>
>>>
>>
>>---------------------------------------------------------------------
>>
>>>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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 4 00:03:55 2004

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.