Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAMI5VhL027887 for ; Mon, 22 Nov 2004 18:05:31 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id 5D7C577689 for ; Mon, 22 Nov 2004 18:02:17 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWIey-00055j-V3 for migo@homemail.com; Mon, 22 Nov 2004 13:11:32 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWIeA-0004vZ-9G for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 13:10:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWIe9-0004ux-Kf for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 13:10:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWIe9-0004uu-0U for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 13:10:41 -0500 Received: from [193.131.176.58] (helo=cam-admin0.cambridge.arm.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWITK-0007S9-E0 for gnu-arch-users@gnu.org; Mon, 22 Nov 2004 13:00:02 -0500 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [10.1.127.39]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id iAMHwgso026577; Mon, 22 Nov 2004 17:58:42 GMT Received: from localhost.localdomain (cmarinas@pc1117.cambridge.arm.com [10.1.69.160]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id RAA16463; Mon, 22 Nov 2004 17:59:23 GMT To: gnu-arch-users@gnu.org References: <20041107234609.7bf0abfe@delta.hk.office.outblaze.com> <1099995711.2900.84.camel@stargate> <1100306258.7511.56.camel@localhost> <20041113122841.GA13424@fencepost> <20041116081231.GS10330@patrick.wattle.id.au> From: Catalin Marinas Date: Mon, 22 Nov 2004 18:00:23 +0000 In-Reply-To: (Catalin Marinas's message of "Mon, 22 Nov 2004 09:55:11 +0000") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Gnu-arch-users] Safer star-merge (was Re: darcs vs tla) X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 1536 Lines: 39 Catalin Marinas writes: > The 'star-merge --three-way' (*not* the standard one) algoritm can be > modified to cope with cherry-picking. The common ancestor of 2 > branches is the last revision before the first 'tla missing' reported > revision between these branches (maybe it already does this). If a > patch was cherry-picked from one branch into the other branch, > 'star-merge -t' would report a conflict in the files modified by the > cherry-picked patch. Actually, this should be the default for star-merge (either the standard or the --three-way one). It is much better (safer) to fix the star-merge conflicts caused by an already cherry-picked patch rather than not applying the patches before the cherry-picked one at all. So, the new definitions reported by star-merge -H could be: MAYBE_ANCESTOR_1 is defined as the highest patch level of FROM in REFERENCE before the first missing patch between TREE and FROM. In other words, it is the latest consecutive REFERENCE revision of FROM's version already merged into TREE. MAYBE_ANCESTOR_2 is defined as the highest patch level in REFERENCE before the first missing patch between FROM and REFERENCE. In other words, it is the latest consecutive revision of REFERENCE already merged into FROM. Does this sound feasible? Catalin _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/