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"?
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.
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.
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.
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.
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.
- CVS commit had a conflict and has not been modified
- CVS update failed
- CVS not synced
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With