Setup and Usage
Download the self-contained JAR from Perforce and check that Java SE runtime is installed with version 7 or greater.
For usage details, execute the jar with no options:
usage: java -jar p4convert.jar
-c,--config <arg> Use configuration file
-d,--default Generate a configuration file
-E,--end <arg> End revision, for incremental (SVN)
-e,--extract <arg> Extract a revision
-i,--info Report on repository usage
-r,--repo <arg> Repository file/path
-S,--start <arg> Start revision, for incremental (SVN)
-t,--type <arg> SCM type (CVS | SVN)
--tags <arg> find tags to specified depth
--tree <arg> (with --info), display tree to specified depth
-u,--users List repository users
-v,--version Version string
Example: standard usage.
java -jar p4convert.jar --config=myFile.cfg
Example: generate a CVS configuration file.
java -jar p4convert.jar --type=CVS --default
Example: report Subversion repository usage.
java -jar p4convert.jar --type=SVN --repo=/path/to/repo.dump --info
To create a default configuration file using the --default
option. You will need to specify the SCM type using --type
(with a value of SVN or CVS). The generated file (default.cfg) will
contain a set of default configuration options based on your platform.
Rename the default.cfg
to your own configuration.
To run a conversion using your configuration file, execute the jar with
the --config
flag specifying you config file.
For example:
java -jar p4convert.jar --config=myFile.cfg