diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Feb 18 18:00:01 2017 +0900
+++ b/mercurial/hgweb/webcommands.py	Sun Feb 19 18:16:09 2017 +0900
@@ -33,6 +33,7 @@
     graphmod,
     revset,
     scmutil,
+    smartset,
     templatefilters,
     templater,
     util,
@@ -1148,7 +1149,7 @@
         # 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))
+        dag = graphmod.dagwalker(web.repo, smartset.baseset(revs))
         # As we said one line above... not lazy.
         tree = list(graphmod.colored(dag, web.repo))