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

Re: HTTP protocol v2: rethunk.

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: Wed, 5 Nov 2008 11:08:15 -0600

On Wed, Nov 5, 2008 at 11:01 AM, C. Michael Pilato <cmpilato_at_collab.net> wrote:

> I'll bet you a can of Starkist Solid White Albacore Tuna that you'll get

Wha? That's like betting a beer connoisseur a bottle of Miller Lite. :-)

> pressed into supporting the full peg-revision syntax if you open this can of
> worms. An easy way to lose the bet is to do nothing and wait for me to
> press you for it. ;-) An easy way to win the bet is to preclude the
> pressing by adding the feature out of the box.
>
> path?[p=PEG&]r=REV (where P defaults to HEAD)
>

I'm fine with that. If you look at the revision I just committed
(r34070), I have a simple TODO there:

      /* ### TODO: someday we should parse *all* query args into an
             apr_table_t, the way mod_form does. */

Shockingly, you'd think that either apache or apr would provide an API
to parse a long query string into a table, but I'm not seeing
anything. Any volunteers?

Beyond the parsing part, I guess the code would have to do more than
simply pretend the person had typed "!svn/bc/REV/path" -- it would
actually have to make an fs call to follow history to the peg. Not a
huge deal.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-05 18:08:34 CET

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

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