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

Re: setting svn:keywords per-directory? per-repo?

From: Seth Landsman <seth_at_boondock.cs.brandeis.edu>
Date: 2002-12-28 15:52:01 CET

On Fri, Dec 27, 2002 at 05:19:47PM -0600, Karl Fogel wrote:
> Seth Landsman <seth@boondock.cs.brandeis.edu> writes:
> > So I'm slowing trying to convert my CVS use to SVN. One feature which
> > is bothering me is the use of svn:keywords. Generally, all my source
> > files have an $Id$ substitution. It would be annoying to have to run
> > svn propset of each file (though I could get by with a perl script) but
> > it would be impossible to train the other people in my group to run svn
> > propset when making a new file.
> >
> > Is there any way to have a sticky svn:keywords property on a directory?
> > Or set a default svn:keywords property for a repository?
>
> I think there'd be a higher chance of it happening for the directory
> than for the repository, as we already have a mechanism for the
> former, whereas the latter requires protocol changes.

        Makes sense to me. I wonder if there would be room for a set of
defaults, though? I am wondering why things like $Id$ are not
automatically expanded by default, as they are in CVS?

> So: How would people feel about svn:keywords on a directory having the
> same effect as that property set for every file immediately in the
> directory (would be overridden by per-file properties, of course)?
>
> My instinct is that it shouldn't descend into subdirs, you'd just have
> to set it on every directory you care about.

        Looking at my pattern of development (and only my pattern of
development, I could be wrong in the general case), I'd make heavy use
of the concept of "sticky" tags. i.e., I would like to turn on $Id$
for my whole project. If I come across a situation where the expansion
is in appropriate, I would turn it off for that file. The issue here is
that, as CVS users, where you do not have that option (for the most
part), we are very careful about the use of expanded strings in our
code.

> By asking, I'm not volunteering to write this :-). But it might be a
> small patch. Let's first decide if we want it, though...

        I had another thought which might be a valid compromise. Is it
possible to write a server-side commit script which would set
svn:keywords?

-Seth

-- 
it is by will alone I set my mind in motion
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 28 15:52:42 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.