Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix issue when committing a change to CVS

I'm trying to commit my changes to CVS repository, but I get the following error:

RCS file: /opt/CZarmen/CVS_REPOSITORY/Z_user/lib/python/StudioCustom.py,v
retrieving revision 1.38
retrieving revision 1.39
Merging differences between 1.38 and 1.39 into StudioCustom.py
M lib/python/StudioCustom.py

RCS file: /opt/CZarmen/CVS_REPOSITORY/Z_user/menu_scripts/Y/ZExtensions,v
retrieving revision 1.46
retrieving revision 1.47
Merging differences between 1.46 and 1.47 into ZExtensions
M menu_scripts/Y/ZExtensions

cvs commit: Up-to-date check failed for `lib/python/StudioCustom.py'
cvs commit: Up-to-date check failed for `menu_scripts/Y/ZExtensions'
cvs [commit aborted]: correct above errors first!

Why does it fail to commit my changes? How do I "correct above errors"?

like image 209
alwbtc Avatar asked Sep 08 '11 08:09

alwbtc


People also ask

How do I revert changes to CVS?

cvs export the 'old version' by tag (or you could do it by date) into a new folder. ensure the 'current version' is checked out, updated, and live. copy the files from the old version into the folder with the current version. commit the result with a suitable comment.

How do I edit a file in CVS?

Modifying a single file in a single directoryVerify that no-one has modified the file in the repository since you checked it out. CVS should reply simply “M” meaning you have modified the file. Update the repository with your modified file. Delete local package dir and all sub-dirs.

How do you commit in CVS Eclipse?

To get commit your changes to CVS, click on the "Commit" (right arrow) icon, type a good message about what you changed/added into the dialog box, and click Finish. You can resynchronize using the "synchronize" button. To go back to the Java perspective, just click on "Java" in the top right corner of Eclipse.


2 Answers

You need to update your working copy first by running cvs up because someone has already updated these files while you were working on them. CVS can't automatically merge these changes during commit.

like image 59
DarkDust Avatar answered Sep 22 '22 05:09

DarkDust


Additionally, just in case you may get error sometimes to UPDATE your local version. The final solution is :

1. Save your local code to another place manually

2. Revert the files which may have conflicts to the HEAD (most latest) version on CVS server.

3. Add back your change to the Reverted file.

The concept for above solution is to CLEAR UP all the possible issue by REVERT and get a 100% clean version from the repository then add back our changes.

It can resolve below issues which caused by code out of date / code base messed up.

  1. CVS commit had a conflict and has not been modified
  2. CVS update failed
  3. CVS not synced
like image 31
Kevin Avatar answered Sep 18 '22 05:09

Kevin