ClearCase 2003 and some versions of 7 suffer from this bug. Basically, cleartool cannot format more than 64k of characters per line (using the -fmt parameter). This means that if you have an old repository with many tags, the ClearCase importer fails badly.
Cleartool prints "Error: Supplied buffer too small." to STDERR when this occurs, but the ClearCase Provider does not actually log STDERR output anywhere.
I have not (yet) found a fix for this yet (other than to patch ClearCase so that the underlying problem does not occur), but the attached patch makes it much easier to identify. It improves the ClearCase importer as follows:
- ClearTool's STDERR is logged to log4j. (Previously, it was ignored). This means the ClearTool error message above is printed.
- Improve multi-line history handling. Presently, once one line is broken, all subsequent lines are likely to get munged too, because they are "grouped" incorrectly. My change means that only the lines with actual problems will fail.
Cheers,
-Tim West
[Edit: attach the patch]