[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Testing equality between svnrdump and svnadmin dump

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 13 Jan 2015 14:21:33 +0000

The next version of my testing patch is attached. It pipes each dumpfile through svndumpfilter and checks that a no-op filtering does not change anything. This finds some differences between svnadmin and svndumpfilter: 1. When a revision has no revprops, svnadmin outputs an empty properties section, while svndumpfilter omits the properties section (but adds an extra newline after where it would have been). svnadmin dump: [[[ Revision-number: 1 Prop-content-length: 10 Content-length: 10 PROPS-END ]]] svndumpfilter: [[[ Revision-number: 1 Content-length: 0 ]]] The document 'notes/dump-load-format.txt' presently says the properties section should always be present. I think we have to change that to say it's optional, as released versions of svndumpfilter behave in this way (at least v1.7 and v1.8). The attached patch 'dump-load-format-no-revprops-1.patch' corrects that documentation. 2. When there is no content section needed on a Node 'add' record (such as an add-with-history with no modifications), svnadmin omits the Content-length header while svndumpfilter writes "Content-length: 0" and an empty content section (a newline). 3. svndumpfilter outputs node headers in a different order. That's fine. - Julian

Received on 2015-01-13 15:22:30 CET

This is an archived mail posted to the Subversion Dev mailing list.