在CVS中如果没有模板文件在提供文件时会出现如下:
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: define.php
CVS: ----------------------------------------------------------------------
~
这时你可以在你的项目下的CVS目录中看到没有 Template文件
这主要是你的CVS服务器没有 /cvsroot/CVSROOT下没有commit.tmpl这个文件.并查看 /cvsroot/CVSROOT下rcsinfo中没有DEFAULT /export/home/cvsroot/CVSROOT/commit.tmpl这行代码
[root@CVS CVSROOT]# more rcsinfo
# The "rcsinfo" file is used to control templates with which the editor
# is invoked on commit and import.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being made to, relative to the
# $CVSROOT. For the first match that is found, then the remainder of the
# line is the name of the file that contains the template.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
DEFAULT /export/home/cvsroot/CVSROOT/commit.tmpl
如果你想修改CVS 修改提交代码时的模板就修改/export/home/cvsroot/CVSROOT/commit.tmpl 文件