[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: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Tue, 19 Apr 2011 08:02:30 +1000

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

Daniel B.
Received on 2011-04-19 00:03:22 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.