On Thu, Mar 31, 2011 at 12:02 AM, Daniel Shahaf <d...@daniel.shahaf.name> wrote:

> Typically to update a file in the repository using the svn_delta API
> you'd already know the current contents of that file.  Is that the case
> for you?
>
> What are you trying to do?  Can you give an example with sample data?

Well, what I was trying to do in my test case was take a file in a
repository with content "test string 1", and update its content to
"test string 2" using mechanisms that would confirm there is a
difference between those two strings before updating the file to the
new string - basically the simplest possible situation.

The "real" problem I'm trying to solve is this - I have binary data
stored in lots of small files in a subversion repository (serialized
geometry data).  I have as incoming data the serialized binary data
for one of the objects.  I want to commit the new contents from the
incoming object to the repository, if that incoming data is different
from the version that is already in the repository.  All of this is
in-memory, no filesystem files are involved except what the FSFS
backend is doing internally.

Cheers,
CY

Reply via email to