Adding CVS Module In JIRA Fails With Error 'Error parsing cvs log: Invalid branch revision'

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

JIRA throws error 'Error parsing cvs log: Invalid branch revision'  when CVS module is added.

The following appears in the atlassian-jira.log:

2012-10-05 15:14:10,511 http-443-6 ERROR admin 914x87914x1 admin 10.64.1.142 /secure/admin/AddRepository.jspa [action.admin.vcs.AddRepository] Error occured while parsing cvs log.
net.sf.statcvs.input.LogSyntaxException: Invalid branch revision:0.1
	at net.sf.statcvs.input.BranchData.calculateRevisionNumbers(BranchData.java:56)
	at net.sf.statcvs.input.BranchData.<init>(BranchData.java:35)
	at net.sf.statcvs.input.CvsFileBlockParser.parseSymbolicNames(CvsFileBlockParser.java:196)

Diagnosis

Check if there any tag that is referring to the non-existence revision number.  The step below can be use:

  1. Run the following command to create a rlog.log file for the CVS module in question. This creates a file similar to the file that JIRA parses:

    cvs rlog <module> > rlog.log
    
  2. Do a search in the rlog.log file for all the occurrences of the branch revision in question (the number that JIRA reported when attempt to add CVS module is made).
  3. check for the non-existance revision. In this example, the reported a problem revision is 0.1. So , use a text editor (e.g. Notepad++) to find all the occurrences of " 0.1" (used a space in front to find only those relevant). Examine each search hit.

Cause

By default, CVS revision number start with 1.1. So, any number lower than 1.1 is invalid.

Resolution

  1. Repair the CVS module by referring the tag to it's valid revision of the file by using the following CVS command on all the relevant files. It's better to contact and consult the CVS administrator to repair the module. The example command that can be use is:

    cvs tag -r <revision> <tag> <file>
  2. Add CVS module to JIRA
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.