Collapse CVS/RCS keywords for diffs and files in CVS.
Review Request #6702 — Created Dec. 18, 2014 and submitted
CVS suffered from the same problems as Subversion when it came to handling keywords in fetched files or diffs, resulting in failed patches. We now pass -kk when fetching a file, which will tell CVS to collapse all keywords. This gives us a sane diff we can apply a patch to. We then collapse keywords in CVS diffs, similarly to how we handle it with Subversion. It's a bit simpler in CVS, though, since there are a set of pre-defined keywords, and they're in a specific format, with no aliases. Unit tests were added to ensure that keywords were collapsed when fetching files, and that collapsing keywords in diffs works fine.
Unit tests pass.
Prior to the fix, both unit tests failed in the expected ways.
- Change Summary:
-
Removed some leftover code.
- Commit:
-
2d4b1b26c747be50feec4a209ec66c53432eb75dd003b97ea0664a5fc1f51d9eac4d0ee78345da9e
-
Tool: Pyflakes Processed Files: reviewboard/scmtools/cvs.py reviewboard/scmtools/tests.py Ignored Files: reviewboard/scmtools/testdata/cvs_repo/CVSROOT/history reviewboard/scmtools/testdata/cvs_repo/test/testfile,v Tool: PEP8 Style Checker Processed Files: reviewboard/scmtools/cvs.py reviewboard/scmtools/tests.py Ignored Files: reviewboard/scmtools/testdata/cvs_repo/CVSROOT/history reviewboard/scmtools/testdata/cvs_repo/test/testfile,v