Hi, merch store,
which md5 sum are you sending as X-SVN-Base-Fulltext-MD5? The one of the latest revision in the repository?
Best regards
Markus Schaber
CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions
________________________________
3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50
E-Mail: m.schaber@codesys.com<mailto:m.schaber@codesys.com> | Web: codesys.com<http://www.codesys.com> | CODESYS store: store.codesys.com<http://store.codesys.com>
CODESYS forum: forum.codesys.com<http://forum.codesys.com>
Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received
this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.
Von: merch store [mailto:primusmanti_at_gmail.com]
Gesendet: Mittwoch, 23. Juli 2014 10:31
An: Philip Martin; users_at_subversion.apache.org
Betreff: Re: http-request PUT
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<mailto:philip.martin_at_wandisco.com>>:
merch store <primusmanti_at_gmail.com<mailto: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 14:52:06 CEST