From owner-freebsd-questions Thu Nov 9 17: 5:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 4B92237B479; Thu, 9 Nov 2000 17:05:47 -0800 (PST) Received: by static.unixfreak.org (Postfix, from userid 1000) id 388C91F28; Thu, 9 Nov 2000 17:05:44 -0800 (PST) Subject: Re: question about cvs(1) In-Reply-To: <20001109183355.B254@parish> "from Mark Ovens at Nov 9, 2000 06:33:55 pm" To: Mark Ovens Date: Thu, 9 Nov 2000 17:05:44 -0800 (PST) Cc: questions@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001110010544.388C91F28@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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.) 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 -- 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