| 1 | = How to Create a Patch = |
| 2 | |
| 3 | If you have a patch that you wish to be included in the Fusion repository, this is what you need to do: |
| 4 | |
| 5 | * '''File a Ticket:''' No patches will be made to trunk unless they are accompanied by a trac ticket. For complete instructions: [wiki:FilingBugs] |
| 6 | |
| 7 | * '''Create the Patch File: ''' |
| 8 | * Get a fresh checkout of trunk or branch. See [wiki:DevelopersCorner#UsingSVN Using SVN] for information on how to check out the trunk or a branch. |
| 9 | * Make your the modifications for your patch. |
| 10 | * Run the tests until they all pass. |
| 11 | * From a commandline, run {{{ svn diff > yourpatchname.patch }}} to create a patch file. |
| 12 | |
| 13 | * '''Attach Patch to Ticket:''' Click the ''Attach File'' Button under the ''Attachments'' heading and select the {{{ yourpatchname.patch }}} file. |
| 14 | |
| 15 | * '''Attach new files to Ticket:''' Files you have created as part of your change are not caught by the '''diff''' process. You will have to add these files individually to the patch. |
| 16 | |
| 17 | ''For instructions on how to '''apply''' a patch, see ApplyingPatches'' |