merch store <primusma...@gmail.com> writes:

> i want to do a checkin from an html-site.
> i already implemented the checkout so i roughly know how to implent
> http-requests.
> right now i nearly finished the task, i've got just one problem within the
> PUT methode.
>
> during the PUT you have to send a body which is a diff.
> but i don't know how svn solved this problem.
> i searched through the sources of svn but it was written in c (and little
> bit to complex to get an overview) and in multiple steps.
> does anybody know how to create the necessary diff or any other ways to
> solve this problem?

PUT doesn't have to send a diff, sending the full text of the file
works.  The diff format is described here:
http://svn.apache.org/repos/asf/subversion/trunk/notes/svndiff

Note that a single PUT will be rejected unless the Apache server has
enabled SVNAutoversioning for the repository.  Without SVNAutoversioning
you must send multiple requests to create a revision: POST, PUT and
MERGE; or MKAKTIVITY, CHECKOUT, PUT and MERGE.  Writing your own HTTP
commit is not trivial, you should consider using the Subversion
bindings.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Reply via email to