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

Re: RFE: Add Subversion keyword for year

From: Alex Vincent <ajvincent_at_gmail.com>
Date: Mon, 18 Apr 2011 15:22:58 -0700

Semantically, that's a good question: does the keyword apply to a checkout
or a checkin?

I would personally expect the last checkin year. This reflects when the
file was last updated, which is what really matters in copyrights, as I
understand them. (IANAL, though.)

On Mon, Apr 18, 2011 at 3:02 PM, Daniel Becroft <djcbecroft_at_gmail.com>wrote:

> On Tue, Apr 19, 2011 at 7:29 AM, Alex Vincent <ajvincent_at_gmail.com> wrote:
>> I'm currently in the process of updating copyright notices where I work.
>> To me, this is an ideal place for a SVN keyword:
>> Copyright 2008-$Year$ MyCompany
>> The SVN keywords listed in the online documentation list Date, but it's
>> far too specific for a copyright. As an alternate, perhaps a special
>> formatting keyword for dates could be established: $Date(YYYY)$, for
>> example.
> AFAIK, the $Date keyword works off the last time the particular file was
> updated. Are you expecting this new $Year$ value to always be current (ie
> 2011), or only reflect the year in which the file was last modified (ie
> 2009)?
> Cheers,
> Daniel B.

"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
Received on 2011-04-19 00:23:28 CEST

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.