Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 62559 invoked from network); 11 Feb 2006 23:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Feb 2006 23:08:55 -0000 Received: (qmail 84661 invoked by uid 500); 11 Feb 2006 23:08:55 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 84639 invoked by uid 500); 11 Feb 2006 23:08:55 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 84628 invoked by uid 99); 11 Feb 2006 23:08:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2006 15:08:54 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 11 Feb 2006 15:08:54 -0800 Received: (qmail 62513 invoked by uid 65534); 11 Feb 2006 23:08:33 -0000 Message-ID: <20060211230833.62512.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r377079 - /apr/site/trunk/xdocs/patches.xml Date: Sat, 11 Feb 2006 23:08:33 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: wrowe Date: Sat Feb 11 15:08:31 2006 New Revision: 377079 URL: http://svn.apache.org/viewcvs?rev=377079&view=rev Log: Let's state some things more plainly, and provide some resources for users to provide us unidiffs. Failing that, make it clear that garbage just isn't likely to be considered. Modified: apr/site/trunk/xdocs/patches.xml Modified: apr/site/trunk/xdocs/patches.xml URL: http://svn.apache.org/viewcvs/apr/site/trunk/xdocs/patches.xml?rev=377079&r1=377078&r2=377079&view=diff ============================================================================== --- apr/site/trunk/xdocs/patches.xml (original) +++ apr/site/trunk/xdocs/patches.xml Sat Feb 11 15:08:31 2006 @@ -13,8 +13,10 @@ who use it in their own projects. We want to make it as easy as possible for people to contribute code. However, we do have some expectations of code that is contributed. This is to help us review code as quickly as possible. If -code is contributed that doesn't follow these guidelines, it will still be -reviewed, but it will most likely take longer.

+code is contributed that doesn't follow these guidelines, it might still be +reviewed, but it will take longer and attract the attention of fewer +developers. When you contribute, please remember that anyone evaluating your +suggestion is a voulenteer contributor, just like yourself.

@@ -40,35 +42,80 @@ partly due to APR's httpd lineage) is that the input values do not need to be checked for correctness. It is the responsibility of the calling program that uses APR to ensure that the input parameters are what APR expects. If the -input parameters are invalid (NULL, for example), APR functions will likely -produce a segfault when it attempts to reference these variables.

+input parameters are invalid (NULL, for example), APR functions are expected +to produce a segfault when it attempts to reference these variables. This +increases the stability of consumer code, by forcing developers to fix code +which might otherwise silently ignores fatal error conditions.

Patch Format -

We prefer that patches be submitted in unified diff format:

+

We request that patches be submitted in unified diff format:

diff -u file-old.c file.c
-

but that isn't available on all platforms. If your platform doesn't -support unified diffs, please use a context diff instead:

+

or if working with an svn checkout:

+ +
svn diff file.c
+ +

where file.c is the file affected. (Older versions of diff +may require -u3 to display lines of context, but the current version of GNU +diff has deprecated the trailing number for -u and presumes three lines, +use -U# syntax if you wish to provide more lines of context.)

+ +

You can obtain the most sophisticated diff utility from the GNU diffutils +project:

+ +
http://www.gnu.org/software/diffutils/diffutils.html
+ +

and Windows users can obtain a native port of diff and other useful utilites +from:

+ +
http://unxutils.sourceforge.net/
+ +

If you cannot produce a unified diff, then at least please submit +a context diff:

diff -C3 file-old.c file.c
-

where file.c is the file affected. We should be able to feed -the patch directly into the "patch" program and have it update the file or set -of files. The -C3 is very important - line numbers can change on -a daily basis in some code files, so having context is crucial to knowing where -it all really goes.

+

We should be able to feed the patch directly into the "patch" program and +have it update the file or set of files. The -u or +-C3 is critical; the existing code changes regularly, so having +context is crucial to understanding your patch and knowing where it all really +goes. Patches without filenames, line numbers and surrounding context become +impossible to consider as time goes on.

Submitting Your Patch -

If you are a subscriber to dev@apr.apache.org, you can simply post +

The best place to submit your patch is an attachment to a bug report:

+ +
http://issues.apache.org/bugzilla/
+ +

Be certain to 1) research your patch, ensure that it isn't already in an +existing bug report, and that similiar code hasn't already been committed to +the working development trunk:

+ +
http://svn.apache.org/repos/asf/apr/apr/trunk
+
http://svn.apache.org/repos/asf/apr/apr-util/trunk
+
http://svn.apache.org/repos/asf/apr/apr-iconv/trunk
+ +

Ensure your patch is attached as a text/ type file, and try retrieving it +yourself after you add it, to ensure that others can, too. Do not submit links +to other locations for your patch (or anyone else's patch!), as they will only +be considered when submitted directly to the ASF by the original author.

+ +

If you are a subscriber to dev@apr.apache.org, you can also post your patch there, with the string "[PATCH]" prefixing your subject line, so everyone knows it's a patch. However, it's not guaranteed that your Patch will find an advocate within the developers' group; if we're too busy working on