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

Re: svndiff has invalid header

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 9 Apr 2013 21:46:36 +0300

Daniel Shahaf wrote on Tue, Apr 09, 2013 at 21:44:36 +0300:
> Rob Brandt wrote on Mon, Apr 08, 2013 at 17:25:49 -0700:
> > When trying to commit, we get an error "svndiff has invalid header".
> That error means the magic bytes at the start of the binary delta (which
> is used to transmit new file-contents across the wire) are wrong.

BTW, the way I figured that out isn't black magic; I just searched
subversion/po/*.po for the error message, which lead me to this code in
libsvn_delta (which implements ^/subversion/trunk/notes/svndiff):

      if (memcmp(buffer, "SVN\0" + db->header_bytes, nheader) == 0)
        db->version = 0;
      else if (memcmp(buffer, "SVN\1" + db->header_bytes, nheader) == 0)
        db->version = 1;
        return svn_error_create(SVN_ERR_SVNDIFF_INVALID_HEADER, NULL,
                                _("Svndiff has invalid header"));
Received on 2013-04-09 20:47:16 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.