Changelog Panel won't work with mercurial>=2.2

Issue #429 resolved
Federico Frenguelli created an issue

When i try to access the Changelog panel i get a 500 Internal Server Error. I'm on a virtualenv with RhodeCode=1.3.4 and mercurial = 2.2rc.

I noticed that in the latest version of mercurial the function colored(dag) has changed to colored(dag, repo). This might be the problem.

Comments (7)

  1. Federico Frenguelli reporter

    When i try to access the Changelog panel i get a 500 Internal Server Error. I'm on a virtualenv with RhodeCode=1.3.4 and mercurial = 2.2rc.

    I noticed that in the latest version of mercurial the function colored(dag) has changed to colored(dag, repo). This might be the problem.

  2. maugustin

    What is the solution here?

    I get a 500 Internal Server Error while accessing the Changelog site. The logfile says:

    File '/var/www/rhodecode-venv/local/lib/python2.6/site-packages/rhodecode/controllers/changelog.py', line 128 in _graph
      c.dag = graphmod.colored(graphmod.dagwalker(repo._repo, revs))
    TypeError: colored() takes exactly 2 arguments (1 given)
    

    What is the fix for this?

  3. Marcin Kuzminski repo owner

    1.3.4 is hg <2.2 Only downgrade your mercurial version, or use the beta version that has this fixed

  4. maugustin

    Thank you very much for the solution to downgrade mercurial.

    source /var/www/rhodecode-venv/bin/activate
    pip install --no-deps mercurial==2.1.2
    
  5. Log in to comment