[issue2170] AttributeError in localrepo.py when using hgtasks or localbranch extension
peter hausel
bugs at mercurial.selenic.com
Tue May 4 11:20:52 UTC 2010
New submission from peter hausel <peter_kovac11 at hotmail.com>:
when creating a task with hgtasks I get the following error:
------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16,
in run
sys.exit(dispatch(sys.argv[1:]))
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 30,
in dispatch
return _runcatch(u, args)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 50,
in _runcatch
return _dispatch(ui, args)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 470,
in _dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 340,
in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 521,
in _runcommand
return checkargs()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 475,
in checkargs
return cmdfunc()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 469,
in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/Library/Python/2.6/site-packages/mercurial/util.py", line 401, in
check
return func(*args, **kwargs)
File "/Users/p.hausel/workspace/hg/tasks.py", line 408, in task
if ((task in repo.branchtags() or task == repo.dirstate.branch()) and
File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 353,
in branchtags
for bn, heads in self.branchmap().iteritems():
File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 331,
in branchmap
tip = self.changelog.tip()
File "/Library/Python/2.6/site-packages/mercurial/util.py", line 156, in
__get__
result = self.func(obj)
File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 116,
in changelog
self.sopener.options['defversion'] = c.version
AttributeError: 'function' object has no attribute 'options'
----------------------------------------------------------
how to replicate:
-install hg tasks
-go to a repository and type hg task mytask
hg version:
- 1.5.1 and 1.5.2 are both effected
- it worked perfectly with 1.4.X
----------
messages: 12437
nosy: pk11
priority: bug
status: unread
title: AttributeError in localrepo.py when using hgtasks or localbranch extension
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2170>
____________________________________________________
More information about the Mercurial-devel
mailing list