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

Question regarding svn_ra_do_update()

From: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2006-11-10 10:08:48 CET

Hello everybody!

I don't seem to understand the RA layer fully, or at least I am missing
something.

I have a working copy at revision X; the user has deleted some entries,
changed others, some haven't been modified.
I now want to update to revision Y; some paths have been changed in-between.

As I have no text-base (this being fsvs) I have to report the missing or
changed files as deleted, to get the fulltext - I couldn't make use of
deltas.

So I do
    svn_ra_do_update(session, &reporter, &baton, Y, "", TRUE,
      &my_editor, my_baton, pool);
    reporter->set_path(baton, "", X, FALSE, NULL, pool);
    reporter->delete_path(baton, "deleted-file", pool);
    reporter->finish_report(baton, pool);
Now my editor is driven, and I get the expected modifications from X to Y.

My problem is that I *also* get the deleted file back - although it didn't
change between X an Y!
If I don't report it with delete_path(), it isn't sent.
Is there some other way to define this path as "send me the fulltext, *if it
has changed*?"

This is using libsvn0 from debian 1.4.0-2.

Ideas or help, please?

Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 10 10:08:52 2006

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.