PVCS to SVN error : "wrong revision number"

Jens Nielsen
Posts: 2
Joined: Wed Oct 14, 2015 7:45 am

PVCS to SVN error : "wrong revision number"

Postby Jens Nielsen » Wed Oct 14, 2015 8:13 am

The conversion script stops with the message "wrong revision number: ". I think this is due to an error in the script, when the PVCS file description text contains the word "Rev". When the script parses the PVCS meta data it mistakes "Rev" in the file description text to be a token that is followed by a PVCS revision number.

In the below example the file description text is: "Rev 3 for pcb735a1, backward compatible with pcb735a0". Note that the conversion script accepts the "Rev" word in the comments to a specific revision, but NOT on the description text entered when the file is added to the PVCS repository.

As I didn't find a solution for this problem, the work-around for me was to modify the description text for each of the files affected. Changing the text from "Rev" to "Revision" makes the error go away.

Anyway - thanks to whoever wrote this fantastic tool.

Best regards,
Jens

historyLogger:84 INFO - src provider: class org.polarion.svnimporter.pvcsprovider.PvcsProvider
Main:84 INFO - List files to files_20150818_163801.txt
Exec:84 INFO - PVCS Version Manager (PCLI) v6.8.10 (Build 193) for Windows NT/80x86
Exec:84 INFO - Copyright 1985-2002 MERANT. All rights reserved.
Exec:80 DEBUG - Process exit value: 0
Exec:84 INFO - PVCS Version Manager (PCLI) v6.8.10 (Build 193) for Windows NT/80x86
Exec:84 INFO - Copyright 1985-2002 MERANT. All rights reserved.
Exec:80 DEBUG - Process exit value: 0
historyLogger:84 INFO - EXCEPTION CAUGHT: org.polarion.svnimporter.common.CommonException: wrong revision number: 3 for pcb735a1, backward compatible with pcb735a0
at org.polarion.svnimporter.common.RevisionNumber.parse(RevisionNumber.java:45)
at org.polarion.svnimporter.pvcsprovider.internal.PvcsUtil.getBranchNumber(PvcsUtil.java:44)
at org.polarion.svnimporter.pvcsprovider.internal.VlogParser.addLine(VlogParser.java:202)
at org.polarion.svnimporter.pvcsprovider.internal.VlogParser.parse(VlogParser.java:105)
at org.polarion.svnimporter.pvcsprovider.PvcsProvider.buildPvcsModel(PvcsProvider.java:107)
at org.polarion.svnimporter.pvcsprovider.PvcsProvider.listFiles(PvcsProvider.java:133)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:80)
at org.polarion.svnimporter.main.Main.main(Main.java:49)

Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 2 guests