diff -r 10c924596e5c -r fccc3eea2ddb mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Nov 10 02:13:19 2016 -0800 +++ b/mercurial/cmdutil.py Thu Nov 10 02:13:19 2016 -0800 @@ -555,7 +555,7 @@ if 'treemanifest' not in repo.requirements: raise error.Abort(_("--dir can only be used on repos with " "treemanifest enabled")) - dirlog = repo.manifest.dirlog(dir) + dirlog = repo.manifestlog._revlog.dirlog(dir) if len(dirlog): r = dirlog elif mf: