我正在尝试将我的更改提交到CVS存储库,但是我收到以下错误:
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!
为什么它没有提交我的更改?我如何“纠正上述错误”?
您需要先运行cvs up
来更新工作副本,因为有人在您处理这些文件时已经更新了这些文件。在提交期间,CVS无法自动合并这些更改。
此外,万一有时您可能会收到错误更新您的本地版本。最终的解决方案是:
1.手动将本地代码保存到其他位置
2.将可能与CVAD服务器上的HEAD(最新)版本冲突的文件还原。
3.将更改添加回“已还原”文件。
上述解决方案的概念是通过REVERT清除所有可能的问题,并从存储库中获取100%干净的版本,然后添加我们的更改。
它可以解决由代码过时/代码库混乱导致的以下问题。
- CVS提交存在冲突,尚未修改
- CVS更新失败
- CVS没有同步