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

Re: Append Copyright Text

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-20 17:56:20 CET

On Mar 20, 2006, at 17:23, Anthony Williams wrote:

> What is the best way to prepend text to a file with information
> about the
> revision without causing issues?
> For example to add a copyright blurb and last updated, blame
> information to
> the top of a file whenever it is committed to the repository. I
> guess it
> would be possible using a pre-commit hook, however then surely it
> would
> result in inconsistencies between the copy in the repository and
> the working
> copy owned by the client.
>
> Does anyone use a system like this and how have you implemented it?
> I've
> tried searching the mailing list archives but didn't manage to turn
> up any
> answers.

Require your users to insert this text themselves before committing.
If this is too much work for them, write a script they can use to do
it on the client side. Write a pre-commit hook which rejects files
which do not have this text, with an explanation for the user of how
to add it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 20 17:59:27 2006

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.