From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Wong Subject: Re: Hello all, I am using git-svn and have some question Date: Sat, 6 Jan 2007 16:23:17 -0800 Message-ID: <20070107002317.GC10933@localdomain> References: <7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com> 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 07 01:23:35 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3Los-0005vy-Uq for gcvg-git@gmane.org; Sun, 07 Jan 2007 01:23:27 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932282AbXAGAXU (ORCPT ); Sat, 6 Jan 2007 19:23:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932281AbXAGAXU (ORCPT ); Sat, 6 Jan 2007 19:23:20 -0500 Received: from hand.yhbt.net ([66.150.188.102]:33476 "EHLO hand.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282AbXAGAXT (ORCPT ); Sat, 6 Jan 2007 19:23:19 -0500 Received: from hand.yhbt.net (localhost [127.0.0.1]) by hand.yhbt.net (Postfix) with SMTP id DBE6E7DC094; Sat, 6 Jan 2007 16:23:17 -0800 (PST) Received: by hand.yhbt.net (sSMTP sendmail emulation); Sat, 06 Jan 2007 16:23:17 -0800 To: Songmao Tian Content-Disposition: inline In-Reply-To: <7d73e7d80701060124t16850e8ob8fbd202d230dd90@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Songmao Tian wrote: > (git v1.4.4.3) > I used the fantastic git-svn multi-init. > git-svn multi-init http://... > > checkout a branch > git-checkout -b kkmao remotes/kkmao > git-checkout -b huahua remotes/huahua > > git-pull . kkmao > (fix a conflict) I no longer recommend using plain git-pull or git-merge with git-svn, especially when using dcommit (which I highly recommend). git-rebase or git-rebase --merge is the recommended method of merging upstream changes. Using the --squash flag with git-pull or git-merge should also work here, but I have less experience with them. > git-checkout kkmao > > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-pull . huahua > Updating dee0161..3fa715b > Fast forward > Targets/Bonito/conf/Bonito | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) On the other hand, pulls/merges without --squash resulting in fast forwards are fine (but git-rebase handles fast forwards just as well). > finnally, "git-svn dcommit -i kkmao"failed, and got the following message > > kkmao@Loongson:~/pmon/pmon-lm2e/git$ git-svn dcommit -i kkmao > diff-tree f179060aa2dd0a4ca4f95f2560ea708765a87a09~1 > f179060aa2dd0a4ca4f95f2560ea708765a87a09 > Merge conflict during commit: Your file or directory 'branches' is > probably out-of-date: The version resource does not correspond to the > resource within the transaction. Either the requested version > resource is out of date (needs to be updated), or the requested > version resource is newer than the transaction root (restart the > commit). at /home/kkmao/bin/git-svn line 1577 This seems to be most likely because dcommit skips merge commits (generated by your pull). -- Eric Wong