You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bo Chen <bo...@gmail.com> on 2013/03/25 21:08:51 UTC

one question on the source code of svnserve

When receiving a commit request, the svnserve will eventually use the
function svn_ra_svn_handle_commands2 in subversion/libsvn_ra_svn/marshal.c
to further handle it. In this function, can anyone give me some hints on
where the following code should point to (i.e., svnserve will use which
function to handle a commit request)?

(*command->handler)(conn, iterpool, params, baton);  //line 1034 of
marshal.c

Thanks.

Bo

Re: one question on the source code of svnserve

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Bo Chen wrote on Mon, Mar 25, 2013 at 16:43:52 -0400:
> On Mon, Mar 25, 2013 at 4:29 PM, Ben Reser <be...@reser.org> wrote:
> 
> > On Mon, Mar 25, 2013 at 1:08 PM, Bo Chen <bo...@gmail.com> wrote:
> > > When receiving a commit request, the svnserve will eventually use the
> > > function svn_ra_svn_handle_commands2 in
> > subversion/libsvn_ra_svn/marshal.c
> > > to further handle it. In this function, can anyone give me some hints on
> > > where the following code should point to (i.e., svnserve will use which
> > > function to handle a commit request)?
> > >
> > > (*command->handler)(conn, iterpool, params, baton);  //line 1034 of
> > > marshal.c
> >
> > commit() which is the function pointed to by the "commit" entry for
> > main_commands.
> >
> 
> Thanks. Ben. Can you tell me in which file I can locate this commit()
> function?

In the same file as main_commands, which is:

% grep '^main_commands' tags
main_commands	subversion/svnserve/serve.c	/^static const svn_ra_svn_cmd_entry_t main_commands[] = {$/;"	v	file:

I imagine gdb could have told you this, too.

Re: one question on the source code of svnserve

Posted by Bo Chen <bo...@gmail.com>.
Thanks. Ben. Can you tell me in which file I can locate this commit()
function?

Bo

On Mon, Mar 25, 2013 at 4:29 PM, Ben Reser <be...@reser.org> wrote:

> On Mon, Mar 25, 2013 at 1:08 PM, Bo Chen <bo...@gmail.com> wrote:
> > When receiving a commit request, the svnserve will eventually use the
> > function svn_ra_svn_handle_commands2 in
> subversion/libsvn_ra_svn/marshal.c
> > to further handle it. In this function, can anyone give me some hints on
> > where the following code should point to (i.e., svnserve will use which
> > function to handle a commit request)?
> >
> > (*command->handler)(conn, iterpool, params, baton);  //line 1034 of
> > marshal.c
>
> commit() which is the function pointed to by the "commit" entry for
> main_commands.
>

Re: one question on the source code of svnserve

Posted by Ben Reser <be...@reser.org>.
On Mon, Mar 25, 2013 at 1:08 PM, Bo Chen <bo...@gmail.com> wrote:
> When receiving a commit request, the svnserve will eventually use the
> function svn_ra_svn_handle_commands2 in subversion/libsvn_ra_svn/marshal.c
> to further handle it. In this function, can anyone give me some hints on
> where the following code should point to (i.e., svnserve will use which
> function to handle a commit request)?
>
> (*command->handler)(conn, iterpool, params, baton);  //line 1034 of
> marshal.c

commit() which is the function pointed to by the "commit" entry for
main_commands.