Hi, Bo, Von: Bo Chen [mailto:bo.irvine.c...@gmail.com] > On Thu, Mar 28, 2013 at 10:56 AM, Daniel Shahaf <danie...@elego.de> wrote: > > Bo Chen wrote on Thu, Mar 28, 2013 at 10:53:24 -0400: > > > I am struggling to locate the source code by which the SVN client can > > > transfer the delta to the server upon a commit operation. Can anyone give > > > me some hints for it, e.g., which source file file is responsible to > > > transferring the delta (after the delta has been computed) to the server ? > > > > > That depends on the RA layer. Look in libsvn_ra_* for the > > "apply_textdelta" function in the commit editor. > > Is that the answer you were looking for? > I am just starting to investigate into the source code of SVN. > > Can you please give me more introductions for it. In my previous experiences > for network communication, I can simply establish a network connection, and > send the information to the server via the socket, and that is it. Why SVN is > so complicated for it, e.g., depends on the RA layer?
The main reason is that SVN supports several different ways of accessing the repository: - The "http" and "https" protocols, handled alternatively via "serf" or "neon" libraries. - The custom "svn" protocol. - Tunneling of the custom svn protocol through ssh or other external communication tools. - Direct, local repository access with "file" URLs (there is no "server" involved in that case). The RA (Repository Access) layer abstracts those. 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.scha...@codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915