[PATCH] httprepo: make sure we have auth before sending large bundles

Matt Mackall mpm at selenic.com
Sat Sep 26 14:58:51 CDT 2009


On Sat, 2009-09-26 at 12:20 -0400, durin42 at gmail.com wrote:
> # HG changeset patch
> # User Augie Fackler <durin42 at gmail.com>
> # Date 1253039420 18000
> # Node ID a359878a686b571414b73ace46a58b66992a58c5
> # Parent  32ec707991726bd58b9190862ab98f204797eea4
> httprepo: make sure we have auth before sending large bundles
> 
> Send an empty bundle to the server to verify we are properly
> authenticated before sending a large bundle. This prevents doing an
> unbundle of many megabytes and then immediately do it again with auth.

Auth is a really unfortunate term, given the similarities and
differences between authentication and authorization. Does this also
make sense for sshrepo, which also has push authorization issues, even
though authentication happens earlier? Or does that manage to abort
earlier?

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list