Jump to content


p4convert Cannot find last revision in svn dumpfile

p4convert svn import

  • Please log in to reply
3 replies to this topic

#1 ccummings

ccummings

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 03 May 2018 - 03:55 PM

I'm starting to prepare for a migration and am running a test case.  p4convert is not able to process my dump file and any help would be appreciated.  Is there a configuration property that is incorrect, or the dump file have some problem?

I am running on Windows7 x64

I'd rather not have to build and then step through with a deugger.

Here's the output:
c:\Users\ccummings\Perforce>java -jar C:\OpenSource\p4convert\PUBLIC.Main.19403\p4convert.jar --config=C:\OpenSource\p4convert\PUBLIC.Main.19403\SVN-migration.cfg
Cannot find last revision in dumpfile
java.lang.Exception: Cannot find last revision in dumpfile
at com.perforce.common.ConverterException.(ConverterException.java:12)
at com.perforce.svn.process.SvnProcessChange.getLastChange(SvnProcessChange.java:56)
at com.perforce.svn.process.SvnProcessChange.(SvnProcessChange.java:44)
at com.perforce.Main.startConversion(Main.java:249)
at com.perforce.Main.processOptions(Main.java:126)
at com.perforce.Main.processArgs(Main.java:82)
at com.perforce.Main.main(Main.java:53)
Exception in thread "main" com.perforce.common.ConverterException
at com.perforce.svn.process.SvnProcessChange.getLastChange(SvnProcessChange.java:56)
at com.perforce.svn.process.SvnProcessChange.(SvnProcessChange.java:44)
at com.perforce.Main.startConversion(Main.java:249)
at com.perforce.Main.processOptions(Main.java:126)
at com.perforce.Main.processArgs(Main.java:82)
at com.perforce.Main.main(Main.java:53)


Here is the config file
# P4Convert configuration (Fri May 20 14:51:20 BST 2016)
# -- modified ccummings for SVN Test Migration 05/03/2018


# Please note that all paths should be absolute and must end with the path
# delimiter '/', even Windows must use '/' and not '\'. For example:
# com.p4convert.p4.clientRoot=C:/perforce/client_ws/
# com.p4convert.p4.clientRoot=/Users/perforce/client_ws/

# Core converter settings
com.p4convert.core.schema=5.59
com.p4convert.core.scmType=SVN
com.p4convert.core.test=true
com.p4convert.core.version=PUBLIC.Main.19403

# Subversion import options
com.p4convert.svn.dumpFile=H:/SRC/test.dmp
com.p4convert.svn.keepKeyword=true
com.p4convert.svn.labelDepth=2
com.p4convert.svn.labelFormat=svn_label:{depth}
com.p4convert.svn.labels=true
com.p4convert.svn.mergeInfoEnabled=false
com.p4convert.svn.propEnabled=false
com.p4convert.svn.propEncoding=ini
com.p4convert.svn.propName=.svn.properties
com.p4convert.svn.propTextType=UNKNOWN
com.p4convert.svn.start=0
com.p4convert.svn.end=3

# Perforce Environment
com.p4convert.p4.caseMode=FIRST
com.p4convert.p4.charset=
com.p4convert.p4.client=p4-client
com.p4convert.p4.clientRoot=C:/Users/ccummings/Perforce/workspaces/main.p4-convert.svn/public/ws/
com.p4convert.p4.depotPath=import
com.p4convert.p4.downgrade=false
com.p4convert.p4.end=0
com.p4convert.p4.jnlIndex=0
com.p4convert.p4.jnlPrefix=jnl.
com.p4convert.p4.lineEnding=true
com.p4convert.p4.logRevID=
com.p4convert.p4.lowerCase=true
com.p4convert.p4.mode=IMPORT
com.p4convert.p4.normalisation=NFC
com.p4convert.p4.offset=0
com.p4convert.p4.passwd=abcd1234
com.p4convert.p4.port=rsh:C:/Program Files/Perforce/DVCS/p4d.exe -r "C:/Users/ccummings/Perforce/.p4root" -i
com.p4convert.p4.root=C:/Users/ccummings/Perforce/workspaces/main.p4-convert.svn/public/p4_root/
com.p4convert.p4.skipEmpty=false
com.p4convert.p4.start=1
com.p4convert.p4.subPath=/
com.p4convert.p4.translate=true
com.p4convert.p4.unicode=false
com.p4convert.p4.user=ccummings

# Logging options
com.p4convert.log.audit.enabled=true
com.p4convert.log.audit.filename=audit.log
com.p4convert.log.changeMap=changeMap.txt

Lastly here is a snippet of the dump file and if I do a search I can find the last revision.
SVN-fs-dump-format-version: 3

UUID: b31bd181-4827-4719-ac46-e8888f4915c5

Revision-number: 0
Prop-content-length: 56
Content-length: 56

K 8
svn:date
V 27
2016-04-15T04:21:38.544689Z
PROPS-END

Revision-number: 1
Prop-content-length: 116
Content-length: 116

K 10
svn:author
V 4
matt
K 8
svn:date
V 27
2016-04-20T04:34:58.574895Z
K 7
svn:log
V 17
create directory

PROPS-END

Revision-number: 2
Prop-content-length: 116
Content-length: 116

K 10
svn:author
V 4
matt
K 8
svn:date
V 27
2016-04-20T04:36:25.005811Z
K 7
svn:log
V 17
create directory

PROPS-END

Revision-number: 3
Prop-content-length: 105
Content-length: 105

K 10
svn:author
V 4
matt
K 8
svn:date
V 27
2016-04-20T05:38:08.203054Z
K 7
svn:log
V 7
delete

PROPS-END

Revision-number: 4
Prop-content-length: 116
Content-length: 116

here is a snippet of the find result
....

Line 1886414: Revision-number: 104955
Line 1886432: Revision-number: 104956
Line 1886450: Revision-number: 104957
Line 1886468: Revision-number: 104958
Line 1886486: Revision-number: 104959
Line 1886504: Revision-number: 104960
Line 1886522: Revision-number: 104961
Line 1886540: Revision-number: 104962
Line 1886558: Revision-number: 104963
Line 1886576: Revision-number: 104964
Line 1886594: Revision-number: 104965
Line 1886612: Revision-number: 104966
Line 1886630: Revision-number: 104967
Line 1886648: Revision-number: 104968
Line 1886666: Revision-number: 104969
Line 1886684: Revision-number: 104970
Line 1886702: Revision-number: 104971
Line 1886720: Revision-number: 104972
Line 1886738: Revision-number: 104973
Line 1886756: Revision-number: 104974
Line 1886774: Revision-number: 104975
Line 1886792: Revision-number: 104976
Line 1886810: Revision-number: 104977

#2 P4Jen

P4Jen

    Advanced Member

  • Staff Moderators
  • 147 posts

Posted 03 May 2018 - 05:20 PM

Hi,

Currently, running P4Convert on Windows is not supported.

SVN conversions may work and this was supported in the past, but my suggestion is to use a Linux machine to run the tool.

If you need further assistance and have a support contract, or are talking with our sales team, you can
reach out to technical support.

Hope this helps,
Jen.


#3 ccummings

ccummings

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 07 May 2018 - 04:43 PM

I have set up in Linux and receive the same error

#4 ccummings

ccummings

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 07 May 2018 - 04:54 PM

recreated SVN dump file and all is well





Also tagged with one or more of these keywords: p4convert, svn, import

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users