From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 1/7] Add a minimal test for git-cherry Date: Sat, 07 Jan 2006 18:22:54 -0800 Message-ID: <7vy81r5ugx.fsf@assigned-by-dhcp.cox.net> References: <20060108003815.GI1113@nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun Jan 08 03:23:05 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvQCw-00067B-Tz for gcvg-git@gmane.org; Sun, 08 Jan 2006 03:22:59 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161142AbWAHCW4 (ORCPT ); Sat, 7 Jan 2006 21:22:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161143AbWAHCW4 (ORCPT ); Sat, 7 Jan 2006 21:22:56 -0500 Received: from fed1rmmtao03.cox.net ([68.230.241.36]:510 "EHLO fed1rmmtao03.cox.net") by vger.kernel.org with ESMTP id S1161142AbWAHCW4 (ORCPT ); Sat, 7 Jan 2006 21:22:56 -0500 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao03.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060108022156.ZCBS20875.fed1rmmtao03.cox.net@assigned-by-dhcp.cox.net>; Sat, 7 Jan 2006 21:21:56 -0500 To: Yann Dirson User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Yann Dirson writes: > This test checks that git-cherry finds the expected number of patches > in two simple cases. > > Signed-off-by: Yann Dirson > > +test_expect_success \ > + 'cherry-pick one of the 2 patches, and check cherry recognized one and only one as new' \ > + 'git-cherry-pick my-topic-branch^0 && > + echo $(git-cherry master my-topic-branch) && > + expr "$(echo $(git-cherry master my-topic-branch) )" : "+ [^ ]* - .*" > +' I wonder if "+ followed by -" order is stable here. If you make commits in the my-topic-branch fast enough, they would get the same timestamp and I suspect the order from rev-list would be left to chance.