Warning

This document hasn't been checked for compatibility with current versions of Plone. Use at your own risk.

Filtering the dump file

by Maurits van Rees last modified Dec 11, 2009 12:47 PM
Getting only your project in a dumpfile

You now have a spacely.dump file on your computer. But that contains the complete repository. Now you want to create a new dump file that only contains the plockets product. You do that with the svndumpfilter command:

cat spacely.dump | svndumpfilter --drop-empty-revs --renumber-revs --quiet include plockets > plockets.dump

This does the following:

  • you pipe the complete dump file to svndumpfilter,
  • you only include revisions that contain changes to plockets,
  • you drop (ignore) any revisions that have nothing to do with plockets,
  • you renumber the revisions (this is recommended when you use the previous step),
  • you do this quietly, though when you do this the first time you probably want to see what happens, so remove the --quiet part,
  • you put the result in a new dump file plockets.dump.

Several things could go wrong here, but we assume for now that this command succeeds without warnings or errors. If you run into problems, then consult the section called Problems with svndumpfilter.


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.