[issue376] TypeError when pushing via http to a repo not supporting this
Thomas Arendsen Hein
mercurial-bugs at selenic.com
Tue Sep 19 07:50:26 UTC 2006
New submission from Thomas Arendsen Hein <thomas at intevation.de>:
To reproduce:
hg pull http://hg.intevation.de/mercurial/tah foo
hg push -Rfoo http://hg.intevation.de/mercurial
(hg.intevation.org doesn't have http push enabled)
The error message:
pushing to http://hg.intevation.org/mercurial
searching for changes
Traceback (most recent call last):
File "./hg", line 12, in ?
commands.run()
File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3118, in run
sys.exit(dispatch(sys.argv[1:]))
File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3330, in dispatch
return d()
File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3284, in <lambda>
d = lambda: func(u, repo, *args, **cmdoptions)
File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 2056, in push
r = repo.push(other, opts['force'], revs=revs)
File "/home/thomas/hg/repos/tah/hgext/mq.py", line 1887, in push
return super(mqrepo, self).push(remote, force, revs)
File "/home/thomas/hg/repos/tah/mercurial/localrepo.py", line 1201, in push
return self.push_unbundle(remote, force, revs)
File "/home/thomas/hg/repos/tah/mercurial/localrepo.py", line 1258, in
push_unbundle
return remote.unbundle(cg, remote_heads, 'push')
File "/home/thomas/hg/repos/tah/mercurial/httprepo.py", line 318, in unbundle
heads=' '.join(map(hex, heads)))
File "/home/thomas/hg/repos/tah/mercurial/httprepo.py", line 223, in do_cmd
resp = urllib2.urlopen(urllib2.Request(cu, data, headers))
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 326, in open
'_open', req)
File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
result = func(*args)
File "/usr/lib/python2.3/urllib2.py", line 901, in http_open
return self.do_open(httplib.HTTP, req)
File "/usr/lib/python2.3/urllib2.py", line 880, in do_open
h.putheader(k, v)
File "/usr/lib/python2.3/httplib.py", line 1041, in putheader
self._conn.putheader(header, '\r\n\t'.join(values))
TypeError: sequence item 0: expected string, long found
----------
messages: 1968
nosy: ThomasAH
priority: bug
status: unread
title: TypeError when pushing via http to a repo not supporting this
topic: http_proto
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue376>
____________________________________________________
More information about the Mercurial
mailing list