[PATCH stable] keyword: the CVS keyword is $RCSfile$, not $RCSFile$

Christian Ebert blacktrash at gmx.net
Thu Nov 26 03:56:34 CST 2009


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1259229077 -3600
# Branch stable
# Node ID 8d08ee8289ffbad40f8250294d7e5bb461d4ceb4
# Parent  b22ff29a3fbb1c1841c1c5b62f510c5ca2c782c3
keyword: the CVS keyword is $RCSfile$, not $RCSFile$

Fix default keyword map accordingly.
http://cvsbook.red-bean.com/cvsbook.html#List%20Of%20Keywords

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -111,7 +111,7 @@
         'Revision': '{node|short}',
         'Author': '{author|user}',
         'Date': '{date|utcdate}',
-        'RCSFile': '{file|basename},v',
+        'RCSfile': '{file|basename},v',
         'Source': '{root}/{file},v',
         'Id': '{file|basename},v {node|short} {date|utcdate} {author|user}',
         'Header': '{root}/{file},v {node|short} {date|utcdate} {author|user}',
diff --git a/tests/test-keyword.out b/tests/test-keyword.out
--- a/tests/test-keyword.out
+++ b/tests/test-keyword.out
@@ -4,14 +4,14 @@
 [keyword]
 demo.txt = 
 [keywordmaps]
-RCSFile = {file|basename},v
+RCSfile = {file|basename},v
 Author = {author|user}
 Header = {root}/{file},v {node|short} {date|utcdate} {author|user}
 Source = {root}/{file},v
 Date = {date|utcdate}
 Id = {file|basename},v {node|short} {date|utcdate} {author|user}
 Revision = {node|short}
-$RCSFile: demo.txt,v $
+$RCSfile: demo.txt,v $
 $Author: test $
 $Header: /TMP/demo.txt,v xxxxxxxxxxxx 2000/00/00 00:00:00 test $
 $Source: /TMP/demo.txt,v $


More information about the Mercurial-devel mailing list