我正在使用 CVS 日志阅读器对格式进行一些验证。CVS 迁移后,我收到以下错误:
java.text.ParseException: Unparseable date: "2011/05/30 08:27:24"
经过调查,我认为 CVS 日志文件中的日期格式已从 YYYY-MM-dd 更改为 YYYY/MM/dd。因此验证失败。
CVS 日志的早期格式是
RCS file: /opt/cvsrepositories/demo/Demo/source/demo_search/.classpath,v
Working file: source/demo_search/.classpath
head: 1.1
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2014-07-14 09:50:57 +0000; author: Dev.User; state: Exp; commitid: 62ee53c3a7d54567;
first version of the search module
=============================================================================
现在,它已更改为:
RCS file: /opt/cvsrepositories/demo/Demo/source/demo_search/.classpath,v
Working file: source/demo_search/.classpath
head: 1.1
branch:
locks: strict
access list:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2014/07/14 09:50:57 +0000; author: Dev.User; state: Exp; commitid: 62ee53c3a7d54567;
first version of the search module
=============================================================================
我检查了 CVS 手册,但无法在日志中格式化日期格式。
迁移的机器具有与旧机器相同的设置。