I'm getting the following error: "commitinfo line contains no format strings [..] Appending defaults (" %r/%p %s")"
when trying to commit a project to CVS using Eclipse (juno) and Ubuntu 12.04.
I couldn't find a solution elsewhere. The directory /usr/local/sbin is empty.
Thanks in advance, below is the full trace
The server reported an error while performing the "cvs commit" command.
myProject: cvs commit: warning: commitinfo line contains no format strings:
myProject: "/usr/local/sbin/validarcommit"
myProject: Appending defaults (" %r/%p %s"), but please be aware that this usage is
myProject: deprecated.
myProject: cvs commit: warning: commitinfo line contains no format strings:
myProject: "/usr/local/sbin/validarcommit"
myProject: Appending defaults (" %r/%p %s"), but please be aware that this usage is
myProject: deprecated.
myProject: cvs commit: warning: verifymsg line doesn't contain any format strings:
myProject: "/export/cvs/CVSROOT/validarmensajecommit"
myProject: Appending default format string (" %l"), but be aware that this usage is
myProject: deprecated.
myProject: cvs [commit aborted]: Message verification failed
Your CVS repository includes a
commitinfofile and averifymsgfile.A
commitinfofile is intended to run validations on each commit. From this error it seems that the file contains two lines that match your commit, both of which run the command/usr/local/sbin/validarcommiton the server.A
verifymsgfile is intended to run validations for CVS log operations. It appears that yourverifymsgfile includes a line that calls the command/export/cvs/CVSROOT/validarmensajecommiton the server.In general, CVS expects
commitinfoandverifymsgvalidation commands to contain formatting expressions, which CVS will replace with the file being committed, the version and so on. This is because the commands are expected to actually look at the file or the log line, and see whether the changes in it are acceptable, according to the standards of your developer team.Apparently, whoever wrote the
commitinfoandverifymsgfor your particular CVS repository did not adhere to these instructions, and just placed commands there without formatting expressions. Thus you are getting warnings from the server about the lack of those formatting commands.You should contact whoever is in charge of the CVS repository and has added the
commitinfoandverifymsgfiles there, and tell them that the current files are written in a deprecated format, and that they should add the formatting characters to them.commitinfofileverifymsgfile