From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Baumann Subject: Re: [PATCH v4] fast-import: treat filemodify with empty tree as delete Date: Thu, 27 Jan 2011 20:33:53 +0100 Message-ID: <20110127193353.GA19378@m62s10.vlinux.de> References: <1291286420-13591-1-git-send-email-david.barr@cordelta.com> <20110103080130.GA8842@burratino> <20110103082458.GC8842@burratino> <20110126224104.GA20388@burratino> <20110126230608.GA26787@burratino> <7vd3nji54o.fsf@alter.siamese.dyndns.org> <20110127060749.GA5586@burratino> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , Sverre Rabbelier , Git Mailing List , Ramkumar Ramachandra , "Shawn O. Pearce" , David Barr To: Jonathan Nieder X-From: git-owner@vger.kernel.org Thu Jan 27 20:34:24 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiXbb-0002kK-V2 for gcvg-git-2@lo.gmane.org; Thu, 27 Jan 2011 20:34:08 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752626Ab1A0TeA (ORCPT ); Thu, 27 Jan 2011 14:34:00 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:49171 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752395Ab1A0TeA (ORCPT ); Thu, 27 Jan 2011 14:34:00 -0500 Received: (qmail invoked by alias); 27 Jan 2011 19:33:58 -0000 Received: from m62s10.vlinux.de (EHLO m62s10.vlinux.de) [83.151.21.204] by mail.gmx.net (mp018) with SMTP; 27 Jan 2011 20:33:58 +0100 X-Authenticated: #1252284 X-Provags-ID: V01U2FsdGVkX1/uXp5oPe3ujlF2S7tutXFRV3fO/9nPbSuSVZofER w8dWoEmb/jaPzc Received: by m62s10.vlinux.de (Postfix, from userid 1000) id 80A11D401F; Thu, 27 Jan 2011 20:33:53 +0100 (CET) Content-Disposition: inline In-Reply-To: <20110127060749.GA5586@burratino> User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Jan 27, 2011 at 12:07:49AM -0600, Jonathan Nieder wrote: > diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh > index 50d5913..8487734 100755 > --- a/t/t9300-fast-import.sh > +++ b/t/t9300-fast-import.sh > @@ -818,6 +818,48 @@ test_expect_success \ > compare_diff_raw expect actual' > > +test_expect_success \ > + 'N: delete directory by copying' \ > + 'cat >expect <<-\EOF && > + OBJID > + :100644 000000 OBJID OBJID D foo/bar/qux > + OBJID > + :000000 100644 OBJID OBJID A foo/bar/baz > + :000000 100644 OBJID OBJID A foo/bar/qux > + EOF > + empty_tree=$(git mktree