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

Re: New File Template

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-10-29 18:43:18 CET

Mike Moreton <mike_moreton@hotmail.com> writes:
> All our source files have a standard header, so when creating a
> completely new file it's nice if the file gets automatically inserted
> before the user gets the chance to edit the file.
>
> We currently do this by using a script that creates the file from a
> template, and calls svn add. But of course that only works on systems
> where the script will work.
>
> Is there any more portable way of doing this?

Subversion doesn't offer any special support for this. However, you
could make a pre-commit hook that rejects any new files that don't
have the header, so at least bogus files won't slip into the
repository.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 29 19:04:40 2007

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.