comparison mercurial/hgweb/webcommands.py @ 31043:aea06029919e

revset: import set classes directly from smartset module Follows up 1be65deb3d54.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 19 Feb 2017 18:16:09 +0900
parents 923336cf8b8a
children 0b8356705de6
comparison
equal deleted inserted replaced
31042:705ecab649ea 31043:aea06029919e
31 encoding, 31 encoding,
32 error, 32 error,
33 graphmod, 33 graphmod,
34 revset, 34 revset,
35 scmutil, 35 scmutil,
36 smartset,
36 templatefilters, 37 templatefilters,
37 templater, 38 templater,
38 util, 39 util,
39 ) 40 )
40 41
1146 break 1147 break
1147 1148
1148 # We have to feed a baseset to dagwalker as it is expecting smartset 1149 # We have to feed a baseset to dagwalker as it is expecting smartset
1149 # object. This does not have a big impact on hgweb performance itself 1150 # object. This does not have a big impact on hgweb performance itself
1150 # since hgweb graphing code is not itself lazy yet. 1151 # since hgweb graphing code is not itself lazy yet.
1151 dag = graphmod.dagwalker(web.repo, revset.baseset(revs)) 1152 dag = graphmod.dagwalker(web.repo, smartset.baseset(revs))
1152 # As we said one line above... not lazy. 1153 # As we said one line above... not lazy.
1153 tree = list(graphmod.colored(dag, web.repo)) 1154 tree = list(graphmod.colored(dag, web.repo))
1154 1155
1155 def getcolumns(tree): 1156 def getcolumns(tree):
1156 cols = 0 1157 cols = 0