[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: <pwd_at_mdtsoft.com>
Date: 2002-12-30 15:07:25 CET

On 27 Dec, Seth Landsman wrote:
I have been thinking on the same problem. Right now I think that the correct
way to handle this is to have a special working directory, one not linked
to a user (I have put this on the server but it can be anyware). then every
so often (cron) a perl script runs that:

1) does a svn update on the special location.

2) check each file for a number of things:
        svn:keysords set correctly (the perl script looks at the file to
                figure out the type of the file.

        A correct copyright notice with the correct years.

        proper formating of the source (indent et. al)

        Other stuff not yet figured out.

3) If a file needs to be changes make the necessary changes and remember
  the file name for the commit comming up.

4) Create a log message.

5) Commit the changes.

6) E-mail notification to me and the director of engineering.

While this would allow some reviesion to fail the above test, a checkin
script can't alter the files being checked in.

I am working on this system right now but it is not yet ready for every
unit testing.

> 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?
>
> Thanks,
> Seth

-- 
It is MDT, Inc's policy to delete mail containing unsolicited file attachments.
Please be sure to contact the MDT staff member BEFORE sending an e-mail with
any file attachments; they will be able to arrange for the files to be received.
This email, and any files transmitted with it, is confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please advise postmaster@mdtsoft.com
<mailto:postmaster@mdtsoft.com>.
Philip W. Dalrymple III <pwd@mdtsoft.com>
MDT Software - The Change Management Company
+1 678 297 1001
Fax +1 678 297 1003
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 30 15:24:05 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.