From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 22 00:55:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A130D16A418 for ; Tue, 22 Jan 2008 00:55:11 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6A4C913C43E for ; Tue, 22 Jan 2008 00:55:11 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id C942546CFD; Mon, 21 Jan 2008 19:55:10 -0500 (EST) Date: Tue, 22 Jan 2008 00:55:10 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Greg Larkin In-Reply-To: <003e01c85c69$fa35cb10$0c01a8c0@FIREBALL> Message-ID: <20080122005137.E26973@fledge.watson.org> References: <4794F175.5040708@gmail.com> <003e01c85c69$fa35cb10$0c01a8c0@FIREBALL> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, "'Aryeh M. Friedman'" Subject: RE: cvs question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 00:55:11 -0000 On Mon, 21 Jan 2008, Greg Larkin wrote: > cvs -q -d /home/ncvs update -d > > The -d option given to the update subcommand builds directories the way cvs > checkout does. Without it, update will only operate on directories that are > already in your sandbox. In principle you only need to specify the first "-d" when you check out, after that if you are working in the sandbox it remembers what you last used (for some approximation of "used"). I like to use "-P" in the second set of flags since it will remove empty directories which are a result of CVS tracking the history only of files, not directories. Example checkout: cd /usr ; cvs -d /home/ncvs co -r RELENG_7 -P src Example update: cd /usr/src ; cvs update -dP If you are running as a user other than the owner of /home/ncvs, "-R" is quite useful as it skips locking. Finally, I also like "-q" to make CVS a bit less chatty. Robert N M Watson Computer Laboratory University of Cambridge