Issue2070

Title hg push fails on SLES 10
Priority bug Status resolved
Superseder Error when cloning with http auth and Python <= 2.4.2
View: 2739
Nosy List kiilerix, mg, mpm, reppep
Assigned To Topics 1.4.3, 1.5, hg, push

Created on 2010-03-03.21:05:19 by reppep, last changed 2011-10-12.17:31:48 by kiilerix.

Messages
msg17622 (view) Author: mpm Date: 2011-10-12.04:44:18
Related: issue2739
msg12171 (view) Author: reppep Date: 2010-03-24.20:43:34
And same with 
http://download.opensuse.org/repositories/home:/bwhiteley/SLE_10/x86_64/mercur
ial-1.3.1-2.1.x86_64.rpm
msg12170 (view) Author: reppep Date: 2010-03-24.20:27:40
Forgot to mention: v1.5 was: 
http://download.opensuse.org/repositories/home:/tiwai/SLE_10/x86_64/mercurial-
1.5-15.1.x86_64.rpm
msg12169 (view) Author: reppep Date: 2010-03-24.20:25:40
pepper@toro:~/mercurial/google.pepper.test> hg push
pushing to https://pepper-test.googlecode.com/hg/
searching for changes
1 changesets found
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.5)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/bin/hg", line 27, in ?
    mercurial.dispatch.run()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 16, 
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 30, 
in dispatch
    return _runcatch(u, args)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 47, 
in _runcatch
    return _dispatch(ui, args)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 466, 
in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 336, 
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 517, 
in _runcommand
    return checkargs()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 471, 
in checkargs
    return cmdfunc()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 465, 
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line 401, in 
check
    return func(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/mercurial/commands.py", line 
2441, in push
    r = repo.push(other, opts.get('force'), revs=revs)
  File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py", line 
1488, in push
    return self.push_unbundle(remote, force, revs)
  File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py", line 
1633, in push_unbundle
    return remote.unbundle(cg, remote_heads, 'push')
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 235, 
in unbundle
    heads=' '.join(map(hex, heads)))
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 134, 
in do_read
    fp = self.do_cmd(cmd, **args)
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 85, 
in do_cmd
    resp = self.urlopener.open(req)
  File "/usr/lib64/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib64/python2.4/urllib2.py", line 396, in error
    result = self._call_chain(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 741, in http_error_401
    host, req, headers)
  File "/usr/lib64/python2.4/urllib2.py", line 720, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
  File "/usr/lib64/python2.4/urllib2.py", line 723, in retry_http_basic_auth
    user,pw = self.passwd.find_user_password(realm, host)
  File "/usr/lib64/python2.4/site-packages/mercurial/url.py", line 114, in 
find_user_password
    auth = self.readauthtoken(authuri)
  File "/usr/lib64/python2.4/site-packages/mercurial/url.py", line 151, in 
readauthtoken
    scheme, hostpath = uri.split('://', 1)
ValueError: need more than 1 value to unpack
pepper@toro:~/mercurial/google.pepper.test> hg --version
Mercurial Distributed SCM (version 1.5)

Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
msg11918 (view) Author: reppep Date: 2010-03-03.21:05:19
We have a SLES 10 system named toro, with Novell's latest available python 
2.4 RPMs. On this system, "hg push" to Google Code repositories fails, 
although "hg push" to HTTPS repos at BitBucket succeeds. Mercurial on other 
systems is able to push to these GC repos successfully.

I can't find anyone else reporting this issue. But I cannot see any reason 
splitting "https://pepper-test.googlecode.com/hg/" on the "://" would fail.

pepper@toro:~/mercurial/google.pepper.test> cat .hg/hgrc 
[paths]
default = https://pepper-test.googlecode.com/hg/
pepper@toro:~/mercurial/google.pepper.test> hg push
pushing to https://pepper-test.googlecode.com/hg/
searching for changes
1 changesets found
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.4.3)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/bin/hg", line 27, in ?
    mercurial.dispatch.run()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 16, 
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 30, 
in dispatch
    return _runcatch(u, args)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 46, 
in _runcatch
    return _dispatch(ui, args)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 454, 
in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 324, 
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 505, 
in _runcommand
    return checkargs()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 459, 
in checkargs
    return cmdfunc()
  File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py", line 453, 
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line 386, in 
check
    return func(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/mercurial/commands.py", line 
2356, in push
    r = repo.push(other, opts.get('force'), revs=revs)
  File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py", line 
1452, in push
    return self.push_unbundle(remote, force, revs)
  File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py", line 
1590, in push_unbundle
    return remote.unbundle(cg, remote_heads, 'push')
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 228, 
in unbundle
    heads=' '.join(map(hex, heads)))
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 128, 
in do_read
    fp = self.do_cmd(cmd, **args)
  File "/usr/lib64/python2.4/site-packages/mercurial/httprepo.py", line 80, 
in do_cmd
    resp = self.urlopener.open(urllib2.Request(cu, data, headers))
  File "/usr/lib64/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib64/python2.4/urllib2.py", line 396, in error
    result = self._call_chain(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 741, in http_error_401
    host, req, headers)
  File "/usr/lib64/python2.4/urllib2.py", line 720, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
  File "/usr/lib64/python2.4/urllib2.py", line 723, in retry_http_basic_auth
    user,pw = self.passwd.find_user_password(realm, host)
  File "/usr/lib64/python2.4/site-packages/mercurial/url.py", line 115, in 
find_user_password
    auth = self.readauthtoken(authuri)
  File "/usr/lib64/python2.4/site-packages/mercurial/url.py", line 152, in 
readauthtoken
    scheme, hostpath = uri.split('://', 1)
ValueError: need more than 1 value to unpack
pepper@toro:~/mercurial/google.pepper.test> cat /etc/SuSE-release 
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 2
pepper@toro:~/mercurial/google.pepper.test> uname -a
Linux toro 2.6.16.60-0.42.9-smp #1 SMP Thu Jan 28 23:39:37 UTC 2010 x86_64 
x86_64 x86_64 GNU/Linux
pepper@toro:~/mercurial/google.pepper.test> rpm -qa|grep python
python-32bit-2.4.2-18.25
python-devel-2.4.2-18.25
subversion-python-1.6.6-3.1
python-sqlite2-2.4.1-2.1
libxml2-python-2.6.23-15.9
python-2.4.2-18.25
python-xml-2.4.2-18.25
dbus-1-python-0.60-33.25
apache2-mod_python-3.3.1-2.48
History
Date User Action Args
2011-10-12 17:31:48kiilerixsetnosy: + kiilerix
2011-10-12 04:47:41mpmsetstatus: chatting -> resolved
nosy: mpm, mg, reppep
superseder: + Error when cloning with http auth and Python <= 2.4.2
2011-10-12 04:44:18mpmsetnosy: + mpm
messages: + msg17622
2010-03-24 20:43:34reppepsetnosy: mg, reppep
messages: + msg12171
2010-03-24 20:27:40reppepsetnosy: mg, reppep
messages: + msg12170
2010-03-24 20:25:41reppepsetpriority: urgent -> bug
topic: + 1.5
status: unread -> chatting
messages: + msg12169
nosy: mg, reppep
2010-03-03 22:03:27mgsetnosy: + mg
2010-03-03 21:05:19reppepcreate