Hi Rich and Stephen, I got a webrev of mofication of HdrChk.py in Check module and the relevant test cases to support both Teamware and Mercurial. What I did: 1> Modify interface of function hdrchk to support both Teamware and Mercurial. 2> Update Checks/HdrChk.py. 3> Currently, there is a bug in hdrchk.py. 'hdrchk -a' doesn't work as we expected. Fixed it. 4> Add a set of header check test examples, m-hdrchk, for mercurial. 5> Rename hdrchk to t-hdrchk to keep the test examples for teamware. 6> Modify test_hdrchk.py to support both Teamware and Mercurial.
More detail, please see the webrev. http://tas.eng/export/pub/Forrest/zfs/scm/scm_stool_1/webrev/ Test results: $ python tooltest.py -v HdrChk hdrchk with malformed __cplusplus guards ... ok hdrchk with missing copyright ... ok hdrchk with invalid ending header guard ... ok hdrchk with missing header guards ... ok hdrchk with relative #include ... ok hdrchk with invalid #pragma ident ... ok hdrchk leniency with missing __cplusplus guards ... ok hdrchk leniency with bad header guard names ... ok hdrchk leniency with ident before header guard when lenient or not ... ok hdrchk leniency with relative #include ... ok hdrchk with missing __cplusplus end guard ... ok hdrchk of file not needing __cplusplus guards ... ok hdrchk with missing __cplusplus guards ... ok hdrchk of valid header ... ok ---------------------------------------------------------------------- Ran 14 tests in 0.846s OK One issue I run across is I can't put the webrev to cr.grommit.com, although I have created a codereview account in it. Any idea? $ scp -r ./webrev forrest at cr.grommit.com:webrev-HdrChk ssh: cr.grommit.com: node name or service name not known lost connection -- Thanks, Forrest Wu, Sun China Engineering & Research +86 10 62673294 http://blogs.sun.com/forrest -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/scm-migration-dev/attachments/20070425/0b4194d4/attachment.html>