From owner-freebsd-questions Mon Apr 1 12:25:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id C197B37B41A for ; Mon, 1 Apr 2002 12:25:36 -0800 (PST) Received: from lungfish.ntlworld.com ([80.4.0.215]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020401202531.PXZW17294.mta05-svc.ntlworld.com@lungfish.ntlworld.com>; Mon, 1 Apr 2002 21:25:31 +0100 Received: from tuatara.goatsucker.org (tuatara.goatsucker.org [192.168.1.6]) by lungfish.ntlworld.com (8.11.6/8.11.3) with ESMTP id g31KPVj45098; Mon, 1 Apr 2002 21:25:31 +0100 (BST) (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id g31KPUh00933; Mon, 1 Apr 2002 21:25:30 +0100 (BST) (envelope-from scott) Date: Mon, 1 Apr 2002 21:25:30 +0100 From: Scott Mitchell To: Gerard Samuel Cc: FreeBSD Questions Subject: Re: deleting from cvs?? Message-ID: <20020401212530.B340@fishballoon.dyndns.org> References: <3CA89965.1060502@trini0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CA89965.1060502@trini0.org>; from gsam@trini0.org on Mon, Apr 01, 2002 at 12:31:17PM -0500 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 01, 2002 at 12:31:17PM -0500, Gerard Samuel wrote: > I got a cvs repository, and Im restructuring the file system. > When deleting empty directories, I would issue cvs update -P to erase > them from my working copy, but they still exist in the source files. > I was told that this is the expected behaviour of cvs update -P. > I went through the man page of cvs looking for a way to erase *both* > working copy and source copy empty directories, but I haven't seen > anything. Is there a way to do this? > Thanks You can always just go into your repository (ie. the real directory tree that the repo files live in) and delete the offending directories. However, they won't be empty unless you *never* committed any files to those directories. When you do a 'cvs delete' it just marks the file as dead on whatever branch you're working on... all the old revisions of the file still exist in the repository. If you really don't care about those old revisions, or you've copied them into your new structure, then by all means just rm the old directories. Personally, I just run with -P in my .cvsrc so this kind of thing is never a problem. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message