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;
      else
        return svn_error_create(SVN_ERR_SVNDIFF_INVALID_HEADER, NULL,
                                _("Svndiff has invalid header"));

Reply via email to