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

Re: one question on the source code of svnserve

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 26 Mar 2013 00:28:16 +0200

Bo Chen wrote on Mon, Mar 25, 2013 at 16:43:52 -0400:
> On Mon, Mar 25, 2013 at 4:29 PM, Ben Reser <ben_at_reser.org> wrote:
>
> > On Mon, Mar 25, 2013 at 1:08 PM, Bo Chen <bo.irvine.chen_at_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.
Received on 2013-03-25 23:28:52 CET

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