Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B8E74429E22 for ; Fri, 6 May 2011 14:06:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.99 X-Spam-Level: X-Spam-Status: No, score=-0.99 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BVFbgZTqrkzh; Fri, 6 May 2011 14:06:29 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1FC89431FB5; Fri, 6 May 2011 14:06:29 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id B5C69254185; Fri, 6 May 2011 14:06:28 -0700 (PDT) From: Carl Worth To: Florian Friesdorf , notmuch@notmuchmail.org Subject: Re: [PATCH] create and set temporary home directory In-Reply-To: <877har5uek.fsf@eve.chaoflow.net> References: <877har5uek.fsf@eve.chaoflow.net> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Fri, 06 May 2011 14:06:22 -0700 Message-ID: <87pqnvk08h.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2011 21:06:29 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 18 Apr 2011 19:41:39 +0200, Florian Friesdorf wr= ote: > My first patch send to the list, not sure whether done properly. Just fine, Florian. Thanks for the contribution! One small thing you might do differently in the future is to tweak the email message to read exactly like a commit message. For example, a sentence like the above "not sure whether done properly" is fine in an email message, but doesn't make sense in the commit message. > I think the tests should not touch the build user's home directory. The > patch creates a directory in the temporary test directory and sets home > accordingly. Similarly, everything in a commit message is known to be your opinion, so you should omit phrases like "I think". Instead, you should describe what the commit actually does, and then describe why it does that. Finally, this little separator with three dashes: > --- > test/test-lib.sh | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) Is what lets git know where your commit message ends. Anything you include after that (And before the patch itself) will be ignored by git. So that's the perfect place to put a sentence like "My first patch---not sure whether done properly". So with all of the above points taken together, your email might have read something like what I've provided below. I applied this patch last week, and would have pushed it, except that just after applying it, I also tried cleaning up some of this part of the code. And in the process it seems I managed to get the test suite to run "rm -rf ${HOME}" with my actual home directory (oops!). Fortunately, I was able to recover from most of that with my dirvish backups. But then I was also on vacation for several days. Anyway, I'm excited to see the release candidate branch that jrollins is putting together now. Hopefully I'll find some good way to collaborate with the work he is doing. =2DCarl From: Florian Friesdorf , notmuch@notmuchmail.org Subject: [PATCH] Create and set temporary home directory To: notmuch@notmuchmail.org Create and set temporary home directory =20=20=20=20 Within test/emacs two tests access the build users home directory. These tests fail in case of a non-existent home directory. =20=20=20=20 Fix these tests to not touch the build user's home directory. Instead, create a directory in the temporary test directory and set HOME accordingly. =2D-- This is my first patch sent to the list. I'm not sure whether I've done it properly. test/test-lib.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) ... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3EYs4ACgkQ6JDdNq8qSWio6ACgorXAURXCMMT1v5FsvmY0VayM N60An3/AKxe2JKgfbT/CVOXdHL/w7fMa =1Us3 -----END PGP SIGNATURE----- --=-=-=--