NDuma/codeswarm

hg_log.py doesn't work with OSX Lion

GoogleCodeExporter opened this issue · 3 comments

Please attach your config file to help us reproduce the problem.

What steps will reproduce the problem?
1. Try to create a codeswarm for a hg repository using hg_log.py

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "convert_logs/hg_log.py", line 135, in <module>
    log = getLog(args[0], options.useUser)
  File "convert_logs/hg_log.py", line 82, in getLog
    mercurial.dispatch.dispatch(args)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 31, in dispatch
    if req.ferr:
AttributeError: 'list' object has no attribute 'ferr'

What version of the product are you using? On what operating system?

codeswarm 0.1
Python 2.7.1
Mercurial 1.9+20110720
Mac OSX Lion

Original issue reported on code.google.com by benjamin...@gmail.com on 27 Sep 2011 at 10:05

Works with Python 2.6

Original comment by benjamin...@gmail.com on 27 Sep 2011 at 10:14

ดีดี

Original comment by huk...@yahoo.com on 7 Nov 2011 at 6:30

I have Python 2.6 and it's not working, it seems to be a problem with Mercurial 
v1.9. I've found a good explanation here: http://stackoverflow.com/a/6731147
and if you change line 82 of hg_log.py into this it should work:

mercurial.dispatch.dispatch(mercurial.dispatch.request(args))

Original comment by massimo....@gmail.com on 5 Aug 2012 at 8:45