Changeset - e5abb9efaf2c
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-05-02 18:19:10
marcin@python-works.com
add option for graphmod to support both hg 2.2 and hg 2.1
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/changelog.py
Show inline comments
 
@@ -126,7 +126,12 @@ class ChangelogController(BaseRepoContro
 

	
 
        elif repo.alias == 'hg':
 
            dag = graphmod.dagwalker(repo._repo, revs)
 
            c.dag = graphmod.colored(dag, repo._repo)
 
            try:
 
                c.dag = graphmod.colored(dag)
 
            except:
 
                #HG 2.2+
 
                c.dag = graphmod.colored(dag, repo._repo)
 

	
 
            for (id, type, ctx, vtx, edges) in c.dag:
 
                if type != graphmod.CHANGESET:
 
                    continue
0 comments (0 inline, 0 general)