[issue2550] hg doesn't reuse auth credentials in hg qclone

Brodie Rao bugs at mercurial.selenic.com
Mon Dec 13 22:13:03 CST 2010


New submission from Brodie Rao <brodie at bitheap.org>:

When doing qclone over HTTP on a server that requires authentication, hg asks for your password an 
awful lot:

$ hg qclone http://server/repo --verbose --debug
using http://server/repo
sending between command
http authorization required
realm: server
user: brodie
password: 
http auth: user brodie, password ***
using http://server/repo/.hg/patches
sending between command
http authorization required
realm: server
user: brodie
password: 
http auth: user brodie, password ***
sending capabilities command
http auth: user brodie, password ***
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending lookup command
http auth: user brodie, password ***
cloning main repository
using http://server/repo
sending between command
http authorization required
realm: server
user: brodie
password: 
http auth: user brodie, password ***
sending heads command
http auth: user brodie, password ***
no changes found
checking for updated bookmarks
sending capabilities command
http auth: user brodie, password ***
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending listkeys command
http auth: user brodie, password ***
cloning patch repository
using http://server/repo/.hg/patches
sending between command
http authorization required
realm: server
user: brodie
password: 
http auth: user brodie, password ***
sending heads command
http auth: user brodie, password ***
requesting all changes
sending changegroup command
http auth: user brodie, password ***
adding changesets
[...]
adding manifests
[...]
adding file changes
[...]
added 58 changesets with 161 changes to 73 files
updating the branch cache
checking for updated bookmarks
sending capabilities command
http auth: user brodie, password ***
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending listkeys command
http auth: user brodie, password ***
updating to branch default
resolving manifests
[...]

It seems like the following events trigger auth prompts:

1. hg sends between to the main repo
2. hg sends between to the mq repo
3. hg clones the main repo
4. hg clones the mq repo

In between #2 and #3, it sends lookup for qbase to the main repo.

----------
messages: 14645
nosy: brodie, djc, mg, nicdumz
priority: bug
status: unread
title: hg doesn't reuse auth credentials in hg qclone
topic: 1.7, http_proto, mq

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2550>
____________________________________________________


More information about the Mercurial-devel mailing list