Hi,
I am trying to configure mercurial multi project interface. I have
Trac 0.11.7 on Debian.

I have modified trac.ini to

[components]
...
trac.versioncontrol.* = disabled
hgtl.* = enabled
tracext.hg.* = disabled


[hg-timeline]
web.href = http://code.mydomain/hg/
proj1 = /projects-repos/PowerSupply
proj2 = /projects-repos/Puppet

[trac]
.........
repository_type = hg
..............

When I do trac-admin sync I get:
Command failed: Unsupported version control system "hg": Can't find an
appropriate component, maybe the corresponding plugin was not
enabled?

When I click on Timeline I get:
Repository checkins event provider (HgTimeline) failed:
TypeError: write_err() got an unexpected keyword argument 'label'
and the trac.log:

2011-09-13 11:45:55,013 Trac[web_ui] ERROR: Timeline event provider
failed:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/timeline/web_ui.py",
line 164, in process_request
    filters):
  File "/usr/local/lib/python2.6/dist-packages/HgTimeline-0.5-
py2.6.egg/hgtl/changelog.py", line 81, in get_timeline_events
    repo = hg.repository(self.ui, rpath)
  File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 94, in
repository
    repo = _lookup(path).instance(ui, path, create)
  File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line
1870, in instance
    return localrepository(ui, util.drop_scheme('file', path), create)
  File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 37,
in __init__
    self.ui.readconfig(self.join("hgrc"), self.root)
  File "/usr/lib/pymodules/python2.6/mercurial/ui.py", line 73, in
readconfig
    trusted = sections or trust or self._is_trusted(fp, filename)
  File "/usr/lib/pymodules/python2.6/mercurial/ui.py", line 60, in
_is_trusted
    'user %s, group %s\n') % (f, user, group))
  File "/usr/lib/pymodules/python2.6/mercurial/ui.py", line 507, in
warn
    self.write_err(*msg, **opts)
TypeError: write_err() got an unexpected keyword argument 'label'
2011-09-13 11:45:55,015 Trac[main] WARNING: HTTPInternalError: 500
Trac Error (<p class="message">Repository checkins event provider
(<tt>HgTimeline</tt>) failed:<br/>TypeError: write_err() got an
unexpected keyword argument 'label'</p><p>You may want to see the
other kind of events from the <a href="/trac/timeline?
ticket=on&amp;milestone=on&amp;wiki=on">Timeline</a></p>)
2011-09-13 11:45:55,034 Trac[chrome] DEBUG: Prepare chrome data for
request


Has anyone have any experience with HgTimeline?

Thank you,
Oksana



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to