[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: Anthony Williams <anthony_at_warwickcontrol.com>
Date: 2006-03-20 19:03:13 CET

Hehe, yeah I guess that'd do it! Was hoping for something a little more
automated, ah well.

Cheers,
Anthony

-----Original Message-----
From: users-return-46760-anthony=warwickcontrol.com@subversion.tigris.org
[mailto:users-return-46760-anthony=warwickcontrol.com@subversion.tigris.org]
On Behalf Of Ryan Schmidt
Sent: 20 March 2006 04:56 PM
To: Anthony Williams
Cc: users@subversion.tigris.org
Subject: Re: Append Copyright Text

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 20 19:04:28 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.