Weird push problem

Scott Palmer swpalmer at gmail.com
Sat Aug 13 00:13:02 UTC 2011


On 2011-08-12, at 5:18 PM, Mads Kiilerich wrote:

> On 08/12/2011 10:54 PM, Scott Palmer wrote:
>> I'm trying to push changes to a repo I'm serving up with hgweb…  I haven't booted up the server I'm pushing to in a while, but it was working fine the last time I tried… the thing that would be different is that now I'm pushing from a more recent client version.
>> 
>> hg push
>> pushing to http://private_repo_URL_here/
>> searching for changes
>> 
>> .. does NOT ask for authorization - this is expected, it should be cache with mercurial_keyring.
>> .. now "sending" progress bar counts out to 12526
>> .. after that phase  is complete it suddenly asks for a password:
> 
> ...
> 
>> $ hg --version
>> Mercurial Distributed SCM (version 1.9.1+2-9991f8b19ff3)
>> (see http://mercurial.selenic.com for more information)
> 
> Patrick has made some important fixes in this area since 1.9.1 - see http://mercurial.selenic.com/bts/issue2885 . Please try again with the tip of the stable branch. It will probably either fix your issues or at least make them look different ;-)
> 
> He also made some fixes for keyring - make sure you also have these.
> 
> /Mads

He needs to make more :-)  I've submitted Issue2953

$ hg push
pushing to http://[private_server]/
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
** Mercurial Distributed SCM (version 1.9.1+9-2ef2d3a5cd2d)
** Extensions loaded: graphlog, color, convert, zeroconf, transplant, rebase, progress, mercurial_keyring
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 27, in run
    sys.exit(dispatch(request(sys.argv[1:])))
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 64, in dispatch
    return _runcatch(req)
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 87, in _runcatch
    return _dispatch(req)
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 688, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 463, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 182, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/hgext/color.py", line 368, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 182, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/hgext/zeroconf/__init__.py", line 171, in cleanupafterdispatch
    return orig(ui, options, cmd, cmdfunc)
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 742, in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 696, in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 685, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 385, in check
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py", line 3869, in push
    other = hg.peer(repo, opts, dest)
  File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 104, in peer
    return repository(rui, path, create)
  File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 93, in repository
    repo = _peerlookup(path).instance(ui, path, create)
  File "/usr/local/lib/python2.7/site-packages/mercurial/httprepo.py", line 231, in instance
    inst._fetchcaps()
  File "/usr/local/lib/python2.7/site-packages/mercurial/httprepo.py", line 56, in _fetchcaps
    self.caps = set(self._call('capabilities').split())
  File "/usr/local/lib/python2.7/site-packages/mercurial/httprepo.py", line 164, in _call
    fp = self._callstream(cmd, **args)
  File "/usr/local/lib/python2.7/site-packages/mercurial/httprepo.py", line 114, in _callstream
    resp = self.urlopener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 398, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 511, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 430, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 370, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1059, in http_error_401
    host, req, headers)
  File "/usr/local/lib/python2.7/site-packages/mercurial/url.py", line 403, in http_error_auth_reqed
    self, auth_header, host, req, headers)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 944, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 949, in retry_http_digest_auth
    auth = self.get_authorization(req, chal)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 984, in get_authorization
    user, pw = self.passwd.find_user_password(realm, req.get_full_url())
  File "build/bdist.macosx-10.7-intel/egg/mercurial_keyring.py", line 298, in find_user_password
  File "build/bdist.macosx-10.7-intel/egg/mercurial_keyring.py", line 123, in find_auth
  File "build/bdist.macosx-10.7-intel/egg/mercurial_keyring.py", line 242, in load_hgrc_auth
TypeError: readauthforuri() takes exactly 3 arguments (2 given)





More information about the Mercurial mailing list