mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
webcommands: changed code to use lazy classes when calling dagwalker
This needs to be changed to use a baseset since dagwalker now expects to receive a smartset. This is basically wrapping revs into a baseset to be compatible with smartset implementations.
This commit is contained in:
parent
0d53c6ae3b
commit
441a4355fa
@ -982,7 +982,11 @@ def graph(web, req, tmpl):
|
||||
if len(revs) >= revcount:
|
||||
break
|
||||
|
||||
dag = graphmod.dagwalker(web.repo, revs)
|
||||
# We have to feed a baseset to dagwalker as it is expecting smartset
|
||||
# object. This does not have a big impact on hgweb performance itself
|
||||
# since hgweb graphing code is not itself lazy yet.
|
||||
dag = graphmod.dagwalker(web.repo, revset.baseset(revs))
|
||||
# As we said one line above... not lazy.
|
||||
tree = list(graphmod.colored(dag, web.repo))
|
||||
|
||||
def getcolumns(tree):
|
||||
|
Loading…
Reference in New Issue
Block a user