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

Re: Txdelta errors using the python bindings

From: Jelmer Vernooij <jelmer_at_vernstok.nl>
Date: 2007-08-04 17:15:52 CEST

On Sat, 2007-08-04 at 17:10 +0200, Jelmer Vernooij wrote:
> Hi!
>
> Using the python bindings to do commits, I'm seeing some weird errors
> sending tx delta's while adding files. This error only appears to occur
> when adding files over remote connections. A repository that I can do
> those commits to fine over file:// breaks over svn+ssh:// or https://.
>
> The easiest way to reproduce this bug is by adding an empty file to a
> Google code repository using the attached script.
>
> Any ideas as to what's going wrong here or perhaps something I'm doing
> wrong in my script ?
Some more details:

If I replace "" as argument to svn.delta.svn_txdelta_send_string with a
non-empty string, the commit succeeds. Otherwise, I'm getting the
following exception:

Traceback (most recent call last):
  File "txdelta-error.py", line 30, in ?
    svn.delta.editor_invoke_close_file(editor, file, None, pool)
  File "/var/lib/python-support/python2.4/libsvn/delta.py", line 551, in
svn_delta_editor_invoke_close_file
    return apply(_delta.svn_delta_editor_invoke_close_file, args)
libsvn._core.SubversionException: ('Invalid diff stream: insn 0 cannot
be decoded', 185003)

Cheers,

Jelmer

Received on Sat Aug 4 17:14:29 2007

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

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