Sticky tag for file is not a branch - CVS

user818700 picture user818700 · Sep 21, 2015 · Viewed 11.4k times · Source

I'm trying to commit my changes to the repository server (using CVS) in Eclipse Kepler, but when I do I get the following error which I've never seen before:

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!

And honestly I don't even know where to start trouble shooting this or what it even means. Any point in the right direction would really be appreciated!

Answer

Olaf Dietsche picture Olaf Dietsche · Sep 6, 2016

I just came upon this too. This may happen, when you checkout a specific version of a file or at some specific date, see Sticky tags for more.

In my case, the files had a sticky tag, but were also at the HEAD. So I could just remove the sticky tag with

cvs update -A file.h file.cpp

and then proceed with cvs commit


And again when you're on a branch, it works more or less the same. Just update to the relevant branch with option -r

cvs update -r <branch-name> file.h file.cpp