Commits

Federico Frenguelli committed e0d0a7c

changelog.py fixed to work with mercurial >= 2.2
added backup files to .hgignore

Comments (0)

Files changed (2)

 *.swp
 *.sqlite
 Paste*.egg
+*~
 
 syntax: regexp
 ^rcextensions

rhodecode/controllers/changelog.py

                 data.append(['', vtx, edges])
 
         elif repo.alias == 'hg':
-            c.dag = graphmod.colored(graphmod.dagwalker(repo._repo, revs))
+            dag = graphmod.dagwalker(repo._repo, revs)
+            try:
+                c.dag = graphmod.colored(dag)
+            except:
+                c.dag = graphmod.colored(dag, repo._repo)
+
             for (id, type, ctx, vtx, edges) in c.dag:
                 if type != graphmod.CHANGESET:
                     continue