我在进行更新时看到以下错误:
cvs update: nothing known about src/java/com/foo/bar/SamplePageBean.java
此外,当使用ViewVC尝试视图包含该文件的目录时,我们得到如下所示:
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/opt/bin/viewvc-1.0.5/lib/viewvc.py", line 3766, in main
request.run_viewvc()
File "/opt/bin/viewvc-1.0.5/lib/viewvc.py", line 394, in run_viewvc
self.view_func(self)
File "/opt/bin/viewvc-1.0.5/lib/viewvc.py", line 1565, in view_directory
request.repos.dirlogs(request.path_parts, request.pathrev, file_data, options)
File "/opt/bin/viewvc-1.0.5/lib/vclib/bincvs/__init__.py", line 195, in dirlogs
alltags = _get_logs(self, dirpath, entries, rev, subdirs)
File "/opt/bin/viewvc-1.0.5/lib/vclib/bincvs/__init__.py", line 917, in _get_logs
raise vclib.Error('Error parsing rlog output. Expected RCS file %s'
Error: Error parsing rlog output. Expected RCS file /export/home/cvs/repository/src/java/com/foo/bar/Attic/GlossaryPageBean.java,v, found /export/home/cvs/repositorysrc/java/com/foo/bar/Attic/HomePageBean.java,v
我认为问题是SamplePageBean.java,v RCS文件如下所示:
head ;
access ;
symbols ;
locks ; strict;
comment @# @;
desc
@@
如你所见。它是空的。我假设它应该有一些实际的元数据。
可以从存储库中删除此文件并重新发送吗?这会对签出的工作副本产生任何负面影响吗?
答案 0 :(得分:1)
根据我的经验,可以从存储库中删除该文件并重新发送。
为了简化流程,您可能会发现创建新的工作副本并在那里重新发布会更好。确保在其他地方提交或备份所有未提交的更改。
明显的警告适用。即,备份您的文件以及可能的存储库。
希望有所帮助。