diff -r 2e017696181f -r 0b7733719d21 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Wed Nov 13 21:52:25 2019 -0500 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu Nov 14 08:03:26 2019 -0800 @@ -32,6 +32,7 @@ error, extensions, hg, + pathutil, profiling, pycompat, registrar, @@ -436,7 +437,7 @@ def _virtualdirs(): # Check the full virtual path, and each parent yield virtual - for p in util.finddirs(virtual): + for p in pathutil.finddirs(virtual): yield p for virtualrepo in _virtualdirs():