[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unedit without edit
From: |
Noel Yap |
Subject: |
Re: unedit without edit |
Date: |
Thu, 25 Apr 2002 08:09:38 -0700 (PDT) |
--- Richard Wesley <address@hidden> wrote:
> Suppose someone is working off line and does the
> following:
>
> - Unlock and edit some files;
> - Connect to the server and do a cvs update
> - Decide to throw out one of the sets of file
> changes and revert to the last
> version.
>
> What is the command sequence for doing this? If the
> user had done a
> cvs edit on the file originally, then cvs unedit
> would presumably do
> what they wanted, but in the scenario I just
> described, they cannot
> do an unedit because they never did an edit. It
> also appears that
> doing the edit, followed by an unedit does not have
> the desired
> result.
>
> Throwing out the file and just doing a cvs update on
> the file is
> probably not a good idea because a newer version may
> have been
> checked in. I suppose that they could update to the
> version in the
> CVS/Entries file, but that seems baroque and
> dangerous, and I'm not
> sure whether that would create a sticky tag. Not to
> mention being
> the sort of thing that casual users should never
> have to do.
>
> Is there some command for ensuring that you obtain a
> clean copy of
> the version of a file that you are working on
> besides cvs unedit?
"cvs edit" and "cvs unedit" are supposed to work even
when offline (the commands get buffered, then sent
next time you use CVS online).
To get a clean copy of a file, use "cvs up -C".
Noel
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/