From owner-freebsd-questions Fri Nov 10 11:11: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id BEC0337B4C5 for ; Fri, 10 Nov 2000 11:11:02 -0800 (PST) Received: from parish ([62.253.89.88]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20001110191100.ZZEC5359.mta06-svc.ntlworld.com@parish>; Fri, 10 Nov 2000 19:11:00 +0000 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id eAAJAwe00836; Fri, 10 Nov 2000 19:10:58 GMT (envelope-from mark) Date: Fri, 10 Nov 2000 19:10:57 +0000 From: Mark Ovens To: Dima Dorfman Cc: questions@freebsd.org Subject: Re: question about cvs(1) Message-ID: <20001110191057.A257@parish> References: <20001109183355.B254@parish> <20001110010544.388C91F28@static.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20001110010544.388C91F28@static.unixfreak.org>; from dima@unixfreak.org on Thu, Nov 09, 2000 at 05:05:44PM -0800 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 09, 2000 at 05:05:44PM -0800, Dima Dorfman wrote: > > Further investigation revealed that share/ was missing in /usr/www. I > > checked that it was in my repo, then ran: > > > > cvs update -P www > > > > but it didn't check it out. I then used > > > > cvs checkout www > > > > and this worked (and updated some other stuff as well). I've read the > > cvs(1) manpage (several times) and I am certain that ``checkout'' is used > > for creating the tree initially and then ``update'' should maintain the > > tree, including checking out new files/dirs, deleting ones that have been > > removed from the repo, and updating changed files/dirs. > > > > So why did ``update'' fail to check out www/share? I realize that I > > may > > Becuase unless otherwise specified, 'update' goes through every > directory *in the checked out copy* and looks for new files. It > doesn't look for new directories in the respository. From cvs(1): > > Use the -d option to create any directories that > exist in the repository if they're missing from the > working directory. (Normally, update acts only on > directories and files that were already enrolled in > your working directory.) > Ah thank you. I hadn't read that far down because the description of the ``update'' option seemed clear enough: update Bring your working directory up to date with changes from the repository. Merges are performed automatically when possible; a warning is issued if manual resolution is required for conflicting changes. (Changes working directory; does not change repository.) > So, instead of `cvs update -P www`, you would do `cvs update -Pd www`. > > As to why checkout didn't get share/ in the first place, I do not > know. > > Hope this helps > It does. Thanks. > -- > Dima Dorfman > Finger dima@unixfreak.org for my public PGP key. > > Life would be much easier if we could just read the source code. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message