java - 文件的粘性标记不是分支 - CVS

标签 java eclipse version-control cvs eclipse-kepler

我正在尝试将我的更改提交到 Eclipse Kepler 中的存储库服务器(使用 CVS),但是当我这样做时,我收到了以下我以前从未见过的错误:

The server reported an error while performing the "cvs commit" command. ProsperityMobile: cvsntsrv server: sticky tag 1.6' for file src/com/prosperity/mobile/controller/UserController.java' is not a branch ProsperityMobile: cvsntsrv server: sticky tag 1.14' for file src/com/prosperity/mobile/service/UserService.java' is not a branch ProsperityMobile: cvsntsrv [server aborted]: correct above errors first!

老实说,我什至不知道从哪里开始解决这个问题,甚至不知道它意味着什么。在正确方向上的任何一点都将不胜感激!

最佳答案

我也是刚刚遇到的。当您 checkout 文件的特定版本或在某个特定日期时,可能会发生这种情况,请参阅 Sticky tags了解更多。

在我的例子中,文件有一个粘性标签,但也在 HEAD 中。所以我可以用

删除粘性标签
cvs update -A file.h file.cpp

然后继续cvs commit


同样,当您在分支机构时,它的工作原理大致相同。只需使用选项 -r

更新到相关分支
cvs update -r <branch-name> file.h file.cpp

关于java - 文件的粘性标记不是分支 - CVS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32697085/

相关文章:

java - 迭代以在索引处查找 Map 条目?

java - 使用两个数组查找交集

java - 获得完美功率数的幂

java - 如何将项目添加到 Eclipse 中的现有 EAR?

sql-server - Redgate SQL Source Control 推荐的开发-测试-实时数据库工作流程

java - 如何从java中的资源文件夹中读取文件?

android - 添加外部 Jar 库

java - Eclipse 4.2 M7 的状态

version-control - 有人在 PeopleSoft 上使用过版本控制吗?

git - 推荐? : git repos on a shared drive or setting up a git server