fix Log keyword expansion with trailing whitespace in prefix
Our expansion of the Log keyword was slightly wrong. We need to trim trailing whitespace from the "prefix" line content which preceeds the Log keyword when we write out line content which followed the Log keyword. Update the Log expansion example given in a comment to document this (see there for details; this behaviour of CVS is hard to explain without illustration). Found while testing conversion of the OpenBSD CVS repository. Add a new test which uses an RCS file from this repository to reproduce this problem.
parent
dcb895ca
No related branches found
No related tags found
Showing
- swh/loader/cvs/cvs2gitdump/cvs2gitdump.py 17 additions, 18 deletionsswh/loader/cvs/cvs2gitdump/cvs2gitdump.py
- swh/loader/cvs/tests/data/rcsbase-log-kw-test-repo.tgz 0 additions, 0 deletionsswh/loader/cvs/tests/data/rcsbase-log-kw-test-repo.tgz
- swh/loader/cvs/tests/test_loader.py 86 additions, 0 deletionsswh/loader/cvs/tests/test_loader.py
Loading