Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7A0670DD for ; Wed, 9 Nov 2011 12:32:41 +0000 (UTC) Received: (qmail 95732 invoked by uid 500); 9 Nov 2011 12:32:41 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 95708 invoked by uid 500); 9 Nov 2011 12:32:41 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 95701 invoked by uid 99); 9 Nov 2011 12:32:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 12:32:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 12:32:40 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 5E5036E3 for ; Wed, 9 Nov 2011 12:32:20 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 09 Nov 2011 12:32:20 -0000 Message-ID: <20111109123220.96673.43288@eos.apache.org> Subject: =?utf-8?q?=5BSubversion_Wiki=5D_Update_of_=22KeepingReintegratedBranchAli?= =?utf-8?q?ve=22_by_JulianFoad?= Auto-Submitted: auto-generated Dear Wiki user, You have subscribed to a wiki page or wiki category on "Subversion Wiki" fo= r change notification. The "KeepingReintegratedBranchAlive" page has been changed by JulianFoad: http://wiki.apache.org/subversion/KeepingReintegratedBranchAlive?action=3Dd= iff&rev1=3D1&rev2=3D2 = Ways to make it easier: = - * Make it easier for the user to do the record-only dance: make 'svn mer= ge' print the required command at the end of the merging, and perhaps store= info in the WC and make 'svn commit' notice and at least print a reminder = and possibly even do that commit. + * Make it easier for the user to do the record-only dance: make 'svn mer= ge' print the required command at the end of the merging. Perhaps store inf= o in the WC and make 'svn commit' notice and at least print a reminder. Pos= sibly even have 'svn commit' do that keep-alive commit after the regular co= mmit. (With the current mergeinfo design it needs to be a separate commit b= ecause it needs to reference the rev number of the first commit.) + {{{ + svn merge --reintegrate ^/branches/this-branch trunk-wc + --- Merging ... + [...] + To continue using the source branch after this reintegration, note the + new revision number REV created by the commit and perform the following + command in a working copy of that branch: + = + svn merge --record-only --change REV ^/trunk . + }}} + = + * Make the reintegrate command optionally commit the result if there are= no conflicts (which is typically the case, if the branch was up to date an= d the trunk isn't too busy). After the reintegrate command commits the rein= tegration, make it do the keep-alive commit directly in the repo. It would = require a clean WC so that it knows this reintegration is the only thing it= is committing. + {{{ + svn merge --reintegrate --commit ^/branches/this-branch trunk-wc + --- Merging ... + [...] + --- Committing ... + [...] + Committed revision 1234. + --- Committing a mergeinfo adjustment to keep the source branch alive ... + [...] + Committed revision 1235. + }}} + = - * Make a no-WC reintegrate command, that performs the reintegrate and co= mmits it, and then does the record-only straight into the repo. This work-f= low is possible because typically there should be no conflicts when reinteg= rating; bail out if there are. + * Make a no-WC reintegrate command, that performs the reintegrate and co= mmits it, and then does the record-only straight into the repo. This work-f= low is possible because typically there should be no conflicts when reinteg= rating; bail out if there are. It might be hard without a WC, might need so= me Subversion library re-architecting. * Make the "sync merge" code recognize the reintegration revision withou= t having to record-only it on the branch. Either store a special marker in = the svn:mergeinfo at reintegrate time, or deduce the fact at sync-merge tim= e. Difficult I know. =20