Edgewall Software

Changes between Version 19 and Version 20 of TracDev/SubmittingPatches


Ignore:
Timestamp:
May 15, 2017, 8:07:03 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Improve formatting and reword some parts.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/SubmittingPatches

    v19 v20  
    3333
    3434Bug fixes for a current release may be added on the "stable" branch:
    35 {{{
    36 svn checkout http://svn.edgewall.org/repos/trac/branches/0.12-stable trac-0.12-stable
     35{{{#!sh
     36$ svn checkout https://svn.edgewall.org/repos/trac/branches/1.2-stable trac-1.2-stable
    3737}}}
    3838
    3939Features should be added on the "trunk" development version:
    40 {{{
    41 svn checkout http://svn.edgewall.org/repos/trac/trunk trac-trunk
     40{{{#!sh
     41$ svn checkout https://svn.edgewall.org/repos/trac/trunk trac-trunk
    4242}}}
    4343
     
    6262Did you create any new files? If you only modified existing Trac files you can skip this. However, if you added any new files be sure to tell Subversion you're adding them:
    6363
    64 {{{
    65 svn add trac/my_new_file.py
     64{{{#!sh
     65$ svn add trac/my_new_file.py
    6666}}}
    6767
     
    7171
    7272Save your changes to the file "my_patch_file.diff":
    73 {{{
    74 svn diff > my_patch_file.diff
     73{{{#!sh
     74$ svn diff > my_patch_file.diff
    7575}}}
    7676
     
    8282
    8383With Mercurial, assuming your patch corresponds to the latest commit:
    84 {{{
    85 hg export tip > my_patch_file.diff
     84{{{#!sh
     85$ hg export tip > my_patch_file.diff
    8686}}}
    8787
    8888With Git, assuming your patch corresponds to the head:
    89 {{{
    90 git show > my_patch_file.diff
     89{{{#!sh
     90$ git show > my_patch_file.diff
    9191}}}
    9292
    9393== Submit the patch
    9494
    95 If there is an existing ticket related to the changes you've made, attach your patch file to that ticket. Otherwise please create a new ticket and attach your patch file. Provide a comment briefly explaining your changes.
     95If there is an existing ticket related to the changes you've made, attach your patch file to that ticket. Otherwise please create a new ticket and attach your patch file. Provide a brief comment explaining your changes.
    9696
    97 Add the keyword `patch` as a hint to developers that a patch has been provided.
     97Add the keyword [kwquery:patch] as a hint to developers that a patch has been provided.
    9898
    99 After that, depending on lots of factors, your patch will be reviewed and eventually integrated. Most probably, you'll be asked to rework your patch a bit, according to the preferences of the Trac maintainers.
     99After that, depending on lots of factors, your patch will be reviewed and eventually integrated. Most likely, you'll be asked to rework your patch a bit, according to the preferences of the Trac maintainers.
    100100
    101101== What is a good patch?
     
    105105 - clarity
    106106   - no spurious changes like whitespace change or other random reformattings
    107    - no unrelated changes; if some refactoring really needs to be done as a preliminary to the actual change, better do that in a separate patch
     107   - no unrelated changes; if some refactoring really needs to be done prior to the actual change, better do that in a separate patch
    108108   - strict adherence to the CodingStyle
    109109 - maintainability