svndumpfilter not dropping empty revisions

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

svndumpfilter not dropping empty revisions

Steven Barbaglia

svndumpfilter is not quite aggressive enough in dropping insignificant commits as shown in the following sample.


$ svndumpfilter --version

svndumpfilter, version 1.10.0 (r1784492)

   compiled Mar 22 2017, 19:02:41 on x86_64-unknown-linux-gnu


$ cat sample.dump

SVN-fs-dump-format-version: 3


UUID: d3321e12-171b-46ef-8253-cae8004b8185


Revision-number: 0

Prop-content-length: 56

Content-length: 56


K 8


V 27




Revision-number: 1

Prop-content-length: 10

Content-length: 10




Revision-number: 2

Prop-content-length: 10

Content-length: 10




Revision-number: 3

Prop-content-length: 10

Content-length: 10




Revision-number: 4

Prop-content-length: 98

Content-length: 98


K 10


V 4


K 8


V 27


K 7


V 0





$ svndumpfilter --drop-empty-revs --renumber-revs include / < sample.dump > filtered.dump

Including (and dropping empty revisions for) prefixes:



Revision 0 committed as 0.

Revision 1 committed as 1.

Revision 2 committed as 2.

Revision 3 committed as 3.

Revision 4 committed as 4.


Revisions renumbered as follows:

   4 => 4

   3 => 3

   2 => 2

   1 => 1

   0 => 0





Sinara provides software development services and software products to major financial sector clients. For 25 years, we have combined strong technical skills with a pragmatic and flexible approach to deliver and support reliable IT systems for a global client base.
mailto:[hidden email]
+44 20 7940 7950

Disclaimer: This e-mail message (and any attachments) is confidential and may contain privileged information. It is for the intended recipient only. If you are not the intended recipient, you must not copy, distribute or use any of the information in it. If you receive this message in error please notify us as soon as possible and delete it. Copyright in this e-mail and attachments created by us belongs to Sinara Consultants Limited. Internet e-mails are not secure. Sinara does not accept responsibility for changes made to this message after it was sent. Should you communicate with anyone at Sinara by email you consent to us monitoring and reading any such correspondence.