[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remove/add question
From: |
Larry Jones |
Subject: |
Re: remove/add question |
Date: |
Thu, 30 Aug 2001 23:57:33 -0400 (EDT) |
David Taylor writes:
>
> Larry Jones wrote:
>
> > Michael Thiele writes:
> > >
> > > you can remove the entry in the file "CVS/Entries".
> >
> > But that would be wrong.
>
> Why?
> It's certainly not the prescribed solution, but is it harmful (other
> than the risk of editing error)?
Because there's a convenient, documented way to achieve the desired
results that *isn't* susceptible to editing error. And because hand-
editing internal files is a very bad habit to get into.
> What else does a "cvs remove" do other than removing the entry in
> CVS/Entries?
"cvs remove" does *not* remove the entry in CVS/Entries, it merely marks
it for deletion. It's the commit that removes it (after updating the
repository).
> What about other admin files in the working directory? I need to move
> the repository to a new host. If someone has a CVS/Root that points to
> the old hostname (instead of the DNS alias for that host, as
> prescribed), is it safe to simply "echo correctName > CVS/Root" to avoid
> checking out again?
That is safe, and CVS doesn't provide the facility itself, so it's also
(one of) the recommended method(s).
-Larry Jones
Life's a lot more fun when you're not responsible for your actions. -- Calvin