keyword: the CVS keyword is $RCSfile$, not $RCSFile$ stable
authorChristian Ebert <blacktrash@gmx.net>
Thu, 26 Nov 2009 10:51:17 +0100
branchstable
changeset 9943 f8d779791161
parent 9942 b6d484168350
child 9944 15a1fe1fee5c
child 9951 9b626a63f556
child 9976 ad09fbd26c62
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.
hgext/keyword.py
tests/test-keyword.out
--- 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]