Subversion: Selective and Incremental Conversions

  1. The Subversion revision ranges can be limited using the configuration options startRevision and endRevision. The default is to start at revision 1 and import all revisions, defined by setting endRevision to 0.

    com.p4convert.svn.start=1
    com.p4convert.svn.end=0
    
  2. Incremental conversions are possible using the Import Mode. It is important to take note of the last imported Subversion revision and start from the next revision for the subsequent import. For example: to import the first 100 subversion revisions, set the config options to:

    com.p4convert.svn.start=1
    com.p4convert.svn.end=100
    
  3. At the start of the import the following summary is displayed: (In this example only the first 100 revisions are imported out of 23000.)

    Importing Subversion ranges:
      start: 1
      end:   100
      last:  23000
    
  4. For the next incremental import (say another 100 revisions) set the revision ranges to...

    com.p4convert.svn.start=101
    com.p4convert.svn.end=200
    
  5. The start and end revisions can be override on the command line using the --start and --end flags. For example, importing just Subversion revision 201.

    java -jar convert.jar --config=default.cfg --start=201 --end=201
    
  6. In adition to overriding the start and end revisions you can override Subversion dump file location using the --repo flags. For example, a range of revisions from an incremental dump.

    svnadmin dump /path/to/repo/ -r 202:300 --incremental > 202-300.dump
    
    java -jar convert.jar --config=default.cfg --repo=202-300.dump --start=202 --end=300