[PATCH] wireproto: add prepush command, use it to shorten unbundle URLs (issue2126)

Matt Mackall mpm at selenic.com
Wed Jan 26 02:21:16 CST 2011


On Wed, 2011-01-26 at 15:27 +0800, Steven Brown wrote:
> # HG changeset patch
> # User StevenGBrown
> # Date 1295885661 -28800
> # Node ID d819cf21ba8b9f2121480ec385dde3814eb19d39
> # Parent  5dda6c708138b7420e73193915c3732118b9e114
> wireproto: add prepush command, use it to shorten unbundle URLs (issue2126)

An interesting approach, and a solid piece of coding, but I'm afraid
this isn't the sort of solution I was hoping for here.

A much more generic approach would have the server advertising "I know
about long args" and the generic http client code would then start
stuffing args somewhere else in the query. For instance, in a series
fake cookies or X-Mercurial-Arg: headers in the HTTP request. Then we'd
automatically get long arg support in all commands, past and future.

ps: please adjust your commit name to something that looks like an email
address.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list