[issue3115] TracMercurial hook is not working
belidzs
bugs at mercurial.selenic.com
Sun Nov 20 16:21:30 UTC 2011
New submission from belidzs <balazs.keresztury at gmail.com>:
I'm using TortoiseHg 2.2 with mercurial 2.0 on client side and hg 1.4.3 on
the server side with ubuntu 10.10lts and Trac 0.12. I've set up Trac and
TracMercurial to hook my commits so linked bugs will be automagically marked
as fixed.
I'm trying to push changes to my server, but the following message comes up:
(In spite of the message, the push is complete, without the hook)
% hg --repository D:\Documents\Visual Studio 2010\Projects\Aperitif push
ssh://belidzs@10.35.35.27/hg/aperitif
pushing to ssh://belidzs@10.35.35.27/hg/aperitif
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 3 changes to 3 files
remote: ** unknown exception encountered, details follow
remote: ** report bug details to http://mercurial.selenic.com/bts/
remote: ** or mercurial at selenic.com
remote: ** Mercurial Distributed SCM (version 1.4.3)
remote: ** Extensions loaded:
remote: Traceback (most recent call last):
remote: File "/usr/bin/hg", line 27, in <module>
remote: mercurial.dispatch.run()
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
16, in run
remote: sys.exit(dispatch(sys.argv[1:]))
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
30, in dispatch
remote: return _runcatch(u, args)
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
46, in _runcatch
remote: return _dispatch(ui, args)
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
454, in _dispatch
remote: return runcommand(lui, repo, cmd, fullargs, ui, options, d)
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
324, in runcommand
remote: ret = _runcommand(ui, options, cmd, d)
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
505, in _runcommand
remote: return checkargs()
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
459, in checkargs
remote: return cmdfunc()
remote: File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line
453, in <lambda>
remote: d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
remote: File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386,
in check
remote: return func(*args, **kwargs)
remote: File "/usr/lib/pymodules/python2.6/mercurial/commands.py", line
2782, in serve
remote: s.serve_forever()
remote: File "/usr/lib/pymodules/python2.6/mercurial/sshserver.py", line
45, in serve_forever
remote: while self.serve_one(): pass
remote: File "/usr/lib/pymodules/python2.6/mercurial/sshserver.py", line
55, in serve_one
remote: if impl: impl()
remote: File "/usr/lib/pymodules/python2.6/mercurial/sshserver.py", line
206, in do_unbundle
remote: r = self.repo.addchangegroup(fp, 'serve', self.client_url())
remote: File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line
2062, in addchangegroup
remote: source=srctype, url=url)
remote: File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line
145, in hook
remote: return hook.hook(self.ui, self, name, throw, **args)
remote: File "/usr/lib/pymodules/python2.6/mercurial/hook.py", line 139,
in hook
remote: r = _pythonhook(ui, repo, name, hname, hookfn, args, throw) or r
remote: File "/usr/lib/pymodules/python2.6/mercurial/hook.py", line 38, in
_pythonhook
remote: obj = __import__(modname)
remote: File "/usr/lib/pymodules/python2.6/mercurial/demandimport.py",
line 85, in _demandimport
remote: return _origimport(name, globals, locals, fromlist)
remote: File "/usr/local/lib/python2.6/dist-packages/TracMercurial-
0.12.0.28dev_r0-py2.6.egg/tracext/__init__.py", line 1, in <module>
remote: __import__('pkg_resources').declare_namespace(__name__)
remote: File "/usr/lib/pymodules/python2.6/mercurial/demandimport.py",
line 85, in _demandimport
remote: return _origimport(name, globals, locals, fromlist)
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
2655, in <module>
remote: working_set.require(__requires__)
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
648, in require
remote: needed = self.resolve(parse_requirements(requirements))
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
518, in resolve
remote: requirements = list(requirements)[::-1] # set up the stack
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
2441, in parse_requirements
remote: for line in lines:
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
1849, in yield_lines
remote: for s in yield_lines(ss):
remote: File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line
1848, in yield_lines
remote: for ss in strs:
remote: TypeError: '_demandmod' object is not iterable
abort: unexpected response: empty string
[command returned code 255 Sun Nov 20 12:34:56 2011]
----------
messages: 18120
nosy: belidzs
priority: bug
status: unread
title: TracMercurial hook is not working
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3115>
____________________________________________________
More information about the Mercurial-devel
mailing list