i already implemented every request needed
checkout:
OPTIONS, PROPFIND, OPTIONS, REPORT, GET
checkin:
OPTIONS, POST, PUT, (if succeeded: MERGE, otherwise: DELETE)
currently my console says my xml file is out of date
i think i've done everthing like svn (checked with wireshark what svn does)
the url within PUT is correct, as headers i send the X-SVN-Version-Name,
the X-SVN-Base-Fulltext-MD5 and the X-SVN-Result-Fulltext-MD5
contentType is application/vnd.svn-svndiff
i think there are 2 possible mistakes
first: svn thinks i want to check in an out of date data, so i have to tell
svn it's not out of date
second: the contentType is not application/vnd.svn-svndiff
with the first one i dont know how to do that and with the second one i
don't know what content it is
just text/xml?
after changing the contenttype to text/xml it still says .xml is out of date
2014-07-22 20:22 GMT+02:00 Philip Martin <philip.martin_at_wandisco.com>:
> 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-23 10:30:36 CEST