Submitting Distro SVN Patches

Made a small change or new addition to the Distro that makes a difference? You can post the changes here in .patch or .diff file format, for others to use or even added to the official Distro SVN!

Moderators: POL Developer, Distro Developer

Locked
User avatar
MuadDib
POL Expert
Posts: 1087
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Submitting Distro SVN Patches

Post by MuadDib » Fri Oct 05, 2007 8:38 pm

Patch Submissions must include the following information
* The purpose of the patch. What if fixes, adds, or adjusts.
* Link or qoute of the original bug report if one does exist.
* Credit to the author if you are not the original author.
* Patch code should conform to the existing Distro format.

Creating an SVN Patch file for submission
* Make sure you have your modified code in you copy of the Distro SVN
* Make sure the patch is made against a clean copy of the SVN, so as not to include other changes not intended.
* Remember to always create a patch file by right clicking on the ROOT directory of the SVN copy, not a subdirectory.
* Code comments are highly welcomed, and recommended.
* Attach the Patch file to your post, host it at Filebeam, or another free file hosting service.
* Code changes need to be in English, for conformity to the rest of Distro.


Right Click on the Root Directory of your SVN Copy. This is very important. It must be the Root Directory.
Go to TortoiseSVN in the Context Menu, Then select Create Patch
Image

Once you click on that, TortoiseSVN will load, and then eventually show all the Modified Files in your SVN Copy.
Make sure the correct ones are checkmarked, then click OK.
Image

Save the new patch file anywhere you like, just remember where you put it! Name it, with the extension of the file being called ".patch". Filenames with these extensions, and .txt will both be allowed to be posted on the submission forum.
Image

Next, go make your post here in the Submissions forum, and be sure to attach your patch! This way, not only can Distro Devs use this patch, but also other people who wish to test your fine work! :)



Applying someone's patch file, so you can test it until it gets approved, or denied, for Distro!

* Save the file from the forum post on your PC. Go to your copy of the Distro SVN, and right click on the Root Directory.
* Go to TortoiseSVN, then click on Apply Patch.
* Go to the location where you saved the Patch File you downloaded. Select that patch file to apply.
POL Developer - The Penguin Scripter

User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm
Contact:

Post by OldnGrey » Sat Oct 06, 2007 6:28 am

Attributes documentation.

As a test to see if this system works. Documented in a similar style to the brainAI web pages.

This patch creates a directory called docs in the attributes package.
releases\097\Distro\pkg\systems\attributes\docs


seems we can't create new directories, so this is a bit limiting unless we are simply adding or editing files.
Attachments
attributesDocs.patch
(254.87 KiB) Downloaded 127 times

Locked