[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Is there a cvs "uncommit", or somethings similar
From: |
Jim.Hyslop |
Subject: |
RE: Is there a cvs "uncommit", or somethings similar |
Date: |
Wed, 7 Jan 2004 13:53:31 -0500 |
Schoep, Grant @ STORM [mailto:address@hidden wrote:
> I just accidently checked a number of files in that I did not
> want to. (i.e.
> I forgot to specify the filename when checking it in and it
> checked a load
> of files in with the wrong description and so on.
>
> I know I could just get the old version, and check that in
> overtop of the
> incorrect one.
This is option (a), and it really is the safest way to do it.
> But I really would like to just undo it, as the cvs log
> descriptions on these files is screwed up.
You can use the 'cvs admin -m' command to change the log entry for the
incorrectly checked-in versions.
> So... is there a way to say, remove rev 1.4 so the latest is
> now gain 1.3?
> And the cvs log will not show that a 1.4 ever was there?
'cvs admin -o 1.4 filename' will do it. Be VERY CAREFUL with this command -
read the manual carefully
(http://www.cvshome.org/docs/manual/cvs-1.11.7/cvs_16.html#SEC119), and test
your commands in a non-critical area of the repository. This command is very
dangerous, which is why it's better to just leave the accidental check-ins
as they are, and just go with option (a) above.
BTW, if you're not a CVS admin, you will probably have no choice but to use
option (a).
--
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (<http://www.leitch.com/>)
Columnist, C/C++ Users Journal (<http://www.cuj.com/experts>)