Postby Graveen » Sat Mar 07, 2009 7:17 pm
The goal is to create diff patch files, with the latest SVN.
Diff patchs are so called because they easily make changes on the files they target.
The test of the code submitted is an hard process, and sometimes we ended up in a non compatible patch. Having a diff is better for everyone using the SVN;
You can, of course, and i invite you to do the same, put the code changes inline, to help comprehension of your patch!
WHY SHOULD WE USE DIFF PATCHES ?
1) patch is far more precise than code: this is a guarantee your code is compatible and not outdated with actual SVN
2) patch is really light, and can be putted inline or attached in a post
3) patch allows the code developers to quickly test and deploy your patch
WHEN SHOULD WE CREATE DIFF PATCHES ?
As often as you can, for the previous reasons.
Of course, you can put code inline for discussion and explain your changes.
TO CREATE A PATCH
1) prepare the changes, get the DoL SVN.
2) commit your changes to your local repository
3) once tested, simply right clic with Tortoise on the root folder of the SVN, menu TortoiseSVN -> create Patch
4) select the files you want to put in the diff patch
5) click ok, your patch file is created
APPLYING A PATCH
1) download the patch, or create it with notepad (give him .patch extension)
2) right click on your root SVN directory, TortoiseSVN -> apply Patch
3) browse for your patch file, right clic on the Files patches windows -> apply all
4) your patch is now deployed
Graveen

* pm me to contribute in Dawn of Light: code, database *