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

Re: http-request PUT

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 22 Jul 2014 19:22:18 +0100

merch store <primusmanti_at_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*
Received on 2014-07-22 20:22:54 CEST

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

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