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

Re: Running svn propset after svn add

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Thu, 30 Jul 2009 13:46:24 -0700

On Thu, Jul 30, 2009 at 1:30 PM, Kenneth Goldman <kgoldman_at_us.ibm.com>wrote:

> Unfortunately, I'm not an svn expert. And I find that the manual's
> approach is "we'll give you the theory, and you can do the
> research to figure out the answer." There are no examples.
> RTFM doesn't work - the manual is too theoretical.
>
> But I can't easily figure out the answer, and I can't risk destroying
> a repository while I experiment.
>
> Would it be possible for you to just give me the answer?
>

The client configuration file on Linux is: ~/.subversion/config
On Windows, TortoiseSVN --> Settings --> General --> Edit Subversion
configuration file

Once you open that file, the last paragraph from my previous email is the
answer. The relevant sections will look like:

[miscellany]
...
...
enable-auto-props = yes
...
...

[auto-props]
*.sh = svn:keywords="Date Author Id Rev DateLastChanged"
...
...

>
>
> --
> Ken Goldman kgold_at_watson.ibm.com
> 914-784-7646 (863-7646)
>
>
> Hari Kodungallur <hkodungallur_at_gmail.com> wrote on 07/29/2009 04:38:51 PM:
>
> > On Wed, Jul 29, 2009 at 1:21 PM, Kenneth Goldman <kgoldman_at_us.ibm.com>
> wrote:
> > For my file header, I have:
> >
> > svn:keywords Date Author Id Rev DateLastChanged
> >
> > It seems like every time I "svn add" a new file, I have to remember to
> > run 'svn propset'. Is there any way to set this for the entire project
> > such that each new file implicitly inherits the property.
> >
> > I use Windows and Linux, so a command line or Tortoise
> > solution will work.
>
> >
> > This can be done by setting the auto-props in the client
> > configuration file. (This is per client, not per project).
> > http://svnbook.red-bean.com/en/1.5/svn.advanced.confarea.html#svn.
> > advanced.confarea.opts.config
> > http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html#svn.
> > advanced.props.auto
> >
> > You have to set the enable-auto-props property under miscellany
> > section to yes. And then in the auto-props section, you map what
> > files get what properties -- for example, you want to restrict
> > setting these keywords to text files only and not binary files
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377138

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-30 22:47:21 CEST

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.