Thursday, March 22, 2012

ViewVC error parsing rlog output

When trying to list a directory in ViewVC 1.1.13, I was getting the error:

An Exception Has Occurred

Python Traceback

Traceback (most recent call last):
File "/usr/share/viewvc/lib/", line 4537, in main
File "/usr/share/viewvc/lib/", line 394, in run_viewvc
File "/usr/share/viewvc/lib/", line 2049, in view_directory
file_data, options)
File "/usr/share/viewvc/lib/vclib/ccvs/", line 261, in dirlogs
alltags = _get_logs(self, path_parts, entries_to_fetch, rev, subdirs)
File "/usr/share/viewvc/lib/vclib/ccvs/", line 1030, in _get_logs
raise vclib.Error('Error parsing rlog output. Expected RCS file %s'
Error: Error parsing rlog output. Expected RCS file /cvs/project/some/path/,v, found

After tracking this down, turns out that if the last line of your commit is:


then you will get two back-to-back lines of all "=" in the rlog output, and ViewVC parsing will fail.

So, until this is fixed in ViewVC, you can edit the *,v files, and change the first character of the line from a "=" to something else.


Post a Comment