Changes between Version 19 and Version 20 of TracDev/SubmittingPatches
- Timestamp:
- May 15, 2017, 8:07:03 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/SubmittingPatches
v19 v20 33 33 34 34 Bug 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-stable35 {{{#!sh 36 $ svn checkout https://svn.edgewall.org/repos/trac/branches/1.2-stable trac-1.2-stable 37 37 }}} 38 38 39 39 Features should be added on the "trunk" development version: 40 {{{ 41 svn checkout http://svn.edgewall.org/repos/trac/trunk trac-trunk40 {{{#!sh 41 $ svn checkout https://svn.edgewall.org/repos/trac/trunk trac-trunk 42 42 }}} 43 43 … … 62 62 Did 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: 63 63 64 {{{ 65 svn add trac/my_new_file.py64 {{{#!sh 65 $ svn add trac/my_new_file.py 66 66 }}} 67 67 … … 71 71 72 72 Save your changes to the file "my_patch_file.diff": 73 {{{ 74 svn diff > my_patch_file.diff73 {{{#!sh 74 $ svn diff > my_patch_file.diff 75 75 }}} 76 76 … … 82 82 83 83 With Mercurial, assuming your patch corresponds to the latest commit: 84 {{{ 85 hg export tip > my_patch_file.diff84 {{{#!sh 85 $ hg export tip > my_patch_file.diff 86 86 }}} 87 87 88 88 With Git, assuming your patch corresponds to the head: 89 {{{ 90 git show > my_patch_file.diff89 {{{#!sh 90 $ git show > my_patch_file.diff 91 91 }}} 92 92 93 93 == Submit the patch 94 94 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 brieflyexplaining your changes.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 brief comment explaining your changes. 96 96 97 Add the keyword `patch`as a hint to developers that a patch has been provided.97 Add the keyword [kwquery:patch] as a hint to developers that a patch has been provided. 98 98 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.99 After 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. 100 100 101 101 == What is a good patch? … … 105 105 - clarity 106 106 - no spurious changes like whitespace change or other random reformattings 107 - no unrelated changes; if some refactoring really needs to be done as a preliminaryto the actual change, better do that in a separate patch107 - no unrelated changes; if some refactoring really needs to be done prior to the actual change, better do that in a separate patch 108 108 - strict adherence to the CodingStyle 109 109 - maintainability