changeset 9943:f8d779791161 stable

keyword: the CVS keyword is $RCSfile$, not $RCSFile$ http://cvsbook.red-bean.com/cvsbook.html#List%20Of%20Keywords Fix default keyword map accordingly. Keep $RCSFile$ for Mercurial backwards compatibility.
author Christian Ebert <blacktrash@gmx.net>
date Thu, 26 Nov 2009 10:51:17 +0100
parents b6d484168350
children 15a1fe1fee5c 9b626a63f556 ad09fbd26c62
files hgext/keyword.py tests/test-keyword.out
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Thu Nov 26 20:50:16 2009 +0100
+++ b/hgext/keyword.py	Thu Nov 26 10:51:17 2009 +0100
@@ -111,7 +111,8 @@
         'Revision': '{node|short}',
         'Author': '{author|user}',
         'Date': '{date|utcdate}',
-        'RCSFile': '{file|basename},v',
+        'RCSfile': '{file|basename},v',
+        'RCSFile': '{file|basename},v', # kept only for backwards compatibility
         'Source': '{root}/{file},v',
         'Id': '{file|basename},v {node|short} {date|utcdate} {author|user}',
         'Header': '{root}/{file},v {node|short} {date|utcdate} {author|user}',
--- a/tests/test-keyword.out	Thu Nov 26 20:50:16 2009 +0100
+++ b/tests/test-keyword.out	Thu Nov 26 10:51:17 2009 +0100
@@ -9,6 +9,7 @@
 Header = {root}/{file},v {node|short} {date|utcdate} {author|user}
 Id = {file|basename},v {node|short} {date|utcdate} {author|user}
 RCSFile = {file|basename},v
+RCSfile = {file|basename},v
 Revision = {node|short}
 Source = {root}/{file},v
 $Author: test $
@@ -16,6 +17,7 @@
 $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $
 $Id: demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $
 $RCSFile: demo.txt,v $
+$RCSfile: demo.txt,v $
 $Revision: xxxxxxxxxxxx $
 $Source: /TMP/demo.txt,v $
 [extensions]