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

RE: What is a "baton" from subversion sources?

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Fri, 11 Feb 2011 15:26:00 -0500

> I'm learning subversion API right now and examining it's source
> code and
> examples. It's a lot of things in subversion source code that is
> called
> a "baton". For example, svn_cmdline_create_auth_baton() create
> "auth
> baton", and callbacks takes callback function pointer and, again,
> batons. I never heard of a term "baton" related to the programming.
> That
> is the "baton" concept subversion source code refers to? Maybe i
> can
> read somewhere about "batons" used in programming? Or is it a well-
> known
> term of some origin?

I don't know the svn code at all... but I expect it is analogous to a baton that relay race team uses. The first person starts running with the baton... he runs his leg and passes the baton to the next runner on the team... who takes it through his part of the course.

So, I would expect that a baton is some symbol or reference to an object that is passed from one function to another and each function performs its responsibility modifying the baton or possible using information stored in the baton.

BOb
Received on 2011-02-11 21:26:38 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.