cvs: peardoc /en/chapters contributing.xml

From: Date: Wed, 11 Jun 2003 14:10:03 +0000
Subject: cvs: peardoc /en/chapters contributing.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-900@lists.php.net to get a copy of this message
mj Wed Jun 11 10:10:03 2003 EDT Modified files: /peardoc/en/chapters contributing.xml Log: * Fixing some typos * Adding information how the maintainers of a package can be found * Rephrasing some sentences Index: peardoc/en/chapters/contributing.xml diff -u peardoc/en/chapters/contributing.xml:1.3 peardoc/en/chapters/contributing.xml:1.4 --- peardoc/en/chapters/contributing.xml:1.3 Wed May 14 03:50:37 2003 +++ peardoc/en/chapters/contributing.xml Wed Jun 11 10:10:03 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <chapter id="contributing"> <docinfo> @@ -36,7 +36,7 @@ </sect1> <sect1 id="contributing.patches"> - <title>Submiting Patches</title> + <title>Submitting Patches</title> <para> If you have modified a package to expand its functionality or to fix a bug, you should contribute your changes back to the community (some @@ -48,51 +48,58 @@ package you wish to patch from CVS by running the commands (the package in this example is Foo_Bar): <screen> - <command>cvs -d:pserver:cvsread@cvs.php.net:/repository login</command> - password is "phpfi" - <command> - cvs -z3 -d:pserver:cvsread@cvs.php.net:/repository co Foo_Bar - </command> +<command>cvs -d:pserver:cvsread@cvs.php.net:/repository login</command> +password is "phpfi" +<command> +cvs -z3 -d:pserver:cvsread@cvs.php.net:/repository co Foo_Bar +</command> </screen> Now that you have the latest sources, you can edit the relevant file(s). Make sure that your patch is fully compatible with the &link.coding-standards;. </para> <para> - After you have finished adding/changnig the code, TEST it, we will not + After you have finished adding/changing the code, TEST it: We will not accept code that hasn't been carefully tested. When you are absolutely sure the new code doesn't introduce bugs, create a unified diff by running: <screen> - <command>cd pear/Foo_Bar</command> - <command>cvs diff -u >Foo_Bar.diff</command> +<command>cd pear/Foo_Bar</command> +<command>cvs diff -u >Foo_Bar.diff</command> </screen> - The resulting .diff file contains your patch. + The resulting .diff file contains your patch. This diff makes it easy + for us to see what has been changed. </para> <para> - Next step is to submit the patch. Send a mail to pear-dev@lists.php.net and + Next step is to submit the patch. Send a mail to &email.pear.dev; and Cc the maintainer(s) of the package. The subject of the mail should be - prefixed by '[PATCH]' to make it clear you are submitting a patch. Also + prefixed with '[Patch]' to make it clear you are submitting a patch. Also include a verbose explanation of what the patch does. - Don't forget to attach the .diff file to the mail. + Don't forget to attach the .diff file to the mail. The maintainers of + the package are usually listed in the header of each source file. Apart + from that their email adresses are available on the package information + page on &url.php.pear;. </para> <note> <para> - If you are using Outlook or Outlook Express, please add .txt to the - diff file, because Outlook's MIME-Type detection depends on the file - extension and only text/plain MIME-Type is allowed in PEAR mailing lists. + If you are using Outlook or Outlook Express, please change the file + extension of the diff file to .txt, because Outlook's MIME-Type + detection depends on the file extension and attachments with a + MIME-Type not equal to <literal>text/plain</literal> will be rejected + by our mailinglist software. </para> </note> <note> <para> - Our general policy about patches that break backward compatibality is to - reject them, unless they are introducing some groundshaking functionality - or fix a critical bug. - However, the final decision wether to accept a patch or not is done - by the package lead maintainer(s). + If your patch does break backwards compatibility, the chances are fairly + good that the maintainers won't be happy about it. Thus you should always + try to fix a bug in a way that does not seriously change the public API. + But if there is absolutely no way to keep backwards compatibility and/or + if your patch contains a groundbraking improvement, even API changes are + fine. </para> </note> </sect1>

« previous php.pear.doc (#900) next »