##// END OF EJS Templates
add option for graphmod to support both hg 2.2 and hg 2.1
marcink -
r2222:e5abb9ef beta
parent child Browse files
Show More
@@ -126,7 +126,12 class ChangelogController(BaseRepoContro
126
126
127 elif repo.alias == 'hg':
127 elif repo.alias == 'hg':
128 dag = graphmod.dagwalker(repo._repo, revs)
128 dag = graphmod.dagwalker(repo._repo, revs)
129 c.dag = graphmod.colored(dag, repo._repo)
129 try:
130 c.dag = graphmod.colored(dag)
131 except:
132 #HG 2.2+
133 c.dag = graphmod.colored(dag, repo._repo)
134
130 for (id, type, ctx, vtx, edges) in c.dag:
135 for (id, type, ctx, vtx, edges) in c.dag:
131 if type != graphmod.CHANGESET:
136 if type != graphmod.CHANGESET:
132 continue
137 continue
General Comments 0
You need to be logged in to leave comments. Login now