mercurial/hgweb/webcommands.py
changeset 31023 aea06029919e
parent 30826 923336cf8b8a
child 31024 0b8356705de6
equal deleted inserted replaced
31022:705ecab649ea 31023: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