You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by DW Dennis Wheeler <dw...@ag.com> on 2009/04/09 16:56:29 UTC
globally setting auto-props
I searched the docs and web and have so far been unable to find a clear
answer.
I see that enabling auto-props in one's local client will set the
appropriately defined properties for some defined fileset for newly
added files -- but that's only local to that one user.
How do I set that globally for all users?
Can I simply copy the same settings from my ~/.subversion/config into
the server's conf/svnserve.conf file?
for example:
-----------
[miscellany]
enable-auto-props = yes
[auto-props]
*.sql = svn:keywords=Revision
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1617688
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: globally setting auto-props
Posted by DW Dennis Wheeler <dw...@ag.com>.
thanks. I'll take a look at your scripts. It sounds like just what I'm
looking for.
> -----Original Message-----
> From: David Weintraub [mailto:qazwart@gmail.com]
> Sent: Sunday, April 12, 2009 8:20 PM
> To: DW Dennis Wheeler
> Cc: users@subversion.tigris.org
> Subject: Re: globally setting auto-props
>
> As Andy Levy stated, there is no global setting for auto-props.
> However, if you provide a standard Subversion config file in
> a place where developers can grab it (like the company Wiki),
> and you use trigger scripts to enforce the property settings,
> your developers will quickly learn to set auto-props
> themselves. It would be nice to have a global setting, but I
> can tell you from experience that a pre-commit trigger works
> pretty well.
>
> I don't know if the standard Python pre-commit access control
> hook can verify that properties are set or not. You should
> check that one first since it's the standard Subversion
> pre-commit trigger. However, if that one doesn't check
> properties,, I have my own Perl version that does verify that
> particular properties are set and that they have the correct
> value. It can be found at
> <http://dl.getdropbox.com/u/433257/hooks.zip>.
>
> On Thu, Apr 9, 2009 at 12:56 PM, DW Dennis Wheeler
> <dw...@ag.com> wrote:
> > I searched the docs and web and have so far been unable to find a
> > clear answer.
> >
> > I see that enabling auto-props in one's local client will set the
> > appropriately defined properties for some defined fileset for newly
> > added files -- but that's only local to that one user.
> >
> > How do I set that globally for all users?
> >
> > Can I simply copy the same settings from my
> ~/.subversion/config into
> > the server's conf/svnserve.conf file?
> >
> > for example:
> > -----------
> > [miscellany]
> > enable-auto-props = yes
> > [auto-props]
> > *.sql = svn:keywords=Revision
> >
> > ------------------------------------------------------
> >
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessag
> > eId=1617688
> >
> > To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
> >
>
>
>
> --
> David Weintraub
> qazwart@gmail.com
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1715913
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: globally setting auto-props
Posted by David Weintraub <qa...@gmail.com>.
As Andy Levy stated, there is no global setting for auto-props.
However, if you provide a standard Subversion config file in a place
where developers can grab it (like the company Wiki), and you use
trigger scripts to enforce the property settings, your developers will
quickly learn to set auto-props themselves. It would be nice to have a
global setting, but I can tell you from experience that a pre-commit
trigger works pretty well.
I don't know if the standard Python pre-commit access control hook can
verify that properties are set or not. You should check that one first
since it's the standard Subversion pre-commit trigger. However, if
that one doesn't check properties,, I have my own Perl version that
does verify that particular properties are set and that they have the
correct value. It can be found at
<http://dl.getdropbox.com/u/433257/hooks.zip>.
On Thu, Apr 9, 2009 at 12:56 PM, DW Dennis Wheeler <dw...@ag.com> wrote:
> I searched the docs and web and have so far been unable to find a clear
> answer.
>
> I see that enabling auto-props in one's local client will set the
> appropriately defined properties for some defined fileset for newly
> added files -- but that's only local to that one user.
>
> How do I set that globally for all users?
>
> Can I simply copy the same settings from my ~/.subversion/config into
> the server's conf/svnserve.conf file?
>
> for example:
> -----------
> [miscellany]
> enable-auto-props = yes
> [auto-props]
> *.sql = svn:keywords=Revision
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1617688
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
--
David Weintraub
qazwart@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1681208
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: globally setting auto-props
Posted by Andy Levy <an...@gmail.com>.
On Thu, Apr 9, 2009 at 12:56, DW Dennis Wheeler <dw...@ag.com> wrote:
> I searched the docs and web and have so far been unable to find a clear
> answer.
>
> I see that enabling auto-props in one's local client will set the
> appropriately defined properties for some defined fileset for newly
> added files -- but that's only local to that one user.
>
> How do I set that globally for all users?
There is no "global for all users" setting that can be set/distributed
via SVN. If oyu have settings that must be done and enforced, you must
implement a hook script to check for those properties on commit.
> Can I simply copy the same settings from my ~/.subversion/config into
> the server's conf/svnserve.conf file?
You can, but that'll only work for users who don't have a
~/.subversion/config on that server.
> for example:
> -----------
> [miscellany]
> enable-auto-props = yes
> [auto-props]
> *.sql = svn:keywords=Revision
I've had our network admins roll out a logon script for all users
which puts a standardized config file in each SVN user's home
directory upon login.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1617849
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].