[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving CVS repository

From: Joi Ellis
Subject: Re: Moving CVS repository
Date: Wed, 1 May 2002 13:42:44 -0500 (CDT)

On Wed, 1 May 2002 address@hidden wrote:

> > I have made a mistake in accessing the host: I used
> > 
> > :pserver:address@hidden:/home/cvs/repository
> > 
> > and wanted to use
> > 
> > :pserver:address@hidden:/home/cvs/repository
> > 
> > Is it dangerous to do this? I do not have other files called Root.
> > I do not want to redownload everything from remote (the problem is: I
> > used this tree locally and burned it to a CDR).
> > 
> > find -type f -name 'Root' \
> >   -exec perl -pi -e 's/localhost/some.hostname/g' {} \;

I use a variant:

  find . -type f -name 'Root' | \
     xargs perl -pi.bak -e 's/localhost/some.hostname/'

This tends to launch perl only once or twice, depending upon the
size of the tree, thanks to xargs.

I prefer using perl rather than a 'cp' because some of our modules
are nested and I don't trust the Root file to be identical all
through the tree.  Maybe they are, maybe they aren't.

It also makes it easier to repair damage should some foolish programmer
have a file named 'Root' with other content.

Joi Ellis                    Software Engineer
Aravox Technologies          address@hidden, address@hidden

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]