From owner-freebsd-hackers Sun Jan 9 10:40: 2 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 855DD14D39 for ; Sun, 9 Jan 2000 10:39:58 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id LAA15125; Sun, 9 Jan 2000 11:39:33 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA16606; Sun, 9 Jan 2000 11:39:31 -0700 Date: Sun, 9 Jan 2000 11:39:31 -0700 Message-Id: <200001091839.LAA16606@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Alexander Langer Cc: Boris Popov , Wilko Bulte , FreeBSD hackers list Subject: Re: moving CVS repository In-Reply-To: <20000109140633.A3812@cichlids.cichlids.com> References: <20000109124420.A60996@yedi.iaf.nl> <20000109140633.A3812@cichlids.cichlids.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > This has the side-effect(?) that all sources checked out from the 'old' > > > repository location have references to /local/CVSfoo whereas cvs update > > > obviously wants to have the references to /local2/CVSfoo. > > The simplest way is to replace content of CVS/Root files. They > > contain full path to repository. > > Yes. Shell is your friend. > > find /local2/CVSfoo -name "Root" | xargs sh -c "mv $a $a.old ; sed -e > 's:/local/:/local2/:g' $a.old > $a && rm $a.old" > > or something. Or even more paranoid and slightly shorter. ;) find /local2/CVSfoo -name Root -print | fgrep CVS | perl -pi -e 's#/local#/local2/#g;' Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message