Wiki

Changes between Version 8 and Version 9 of HowToSubmitAPatch

Show
Ignore:
Timestamp:
11/02/08 01:43:19 (15 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToSubmitAPatch

    v8 v9  
    6868}}} 
    6969 
     70If you have old, commented out code that is no longer relevant due to the patch, delete it. The patch "diff" itself will show the old code and we can always retrieve it from the source code control system if we need it at a later date. Also, remove stray {{{print}}} and {{{trace}}} statements used for debugging. 
     71 
     72Avoid `shared` variables as much as possible. Each one makes it harder to embed, reuse and multithread the Cobra compiler. 
     73 
     74= Test Cases = 
     75 
    7076In test cases, put the "# .error." or the "# .warning." on the same line that it goes with. You'll see that many tests put these at the very top, but that was the old approach before the automated testing supported the current approach: on the same line. 
    71  
    72 Update !IntermediateReleaseNotes.text in the Developer directory next door to the Source directory. Include your name or forum/Trac handle for credit. Reference tickets using Trac syntax with "ticket", colon (:) and number. (The HTML formatter for the release notes supports that.) 
    7377 
    7478Be sure to add or update tests found in the Tests directory next door to the Source directory. You may wish to run the test suite ''before'' making your changes in order to see if there are any failures independent of them. You must run the test suite after your final changes to be sure nothing has been broken by them. 
     
    8286}}} 
    8387 
    84 If you have old, commented out code that is no longer relevant due to the patch, delete it. The patch "diff" itself will show the old code and we can always retrieve it from the source code control system if we need it at a later date. Also, remove stray {{{print}}} and {{{trace}}} statements used for debugging. 
     88After testing, if you make any small tweaks to your code, please run the test suite again. You never know what's going to break. 
    8589 
    86 After testing, if you make any small tweaks to your code, please run the test suite again. You never know what's going to break. 
     90= Release Notes = 
     91 
     92Update !IntermediateReleaseNotes.text in the Developer directory next door to the Source directory. Include your name or forum/Trac handle for credit. Reference tickets using Trac syntax with "ticket", colon (:) and number. (The HTML formatter for the release notes supports that.) 
    8793 
    8894= Submitting =