mercurial/cmdutil.py
changeset 30371 fccc3eea2ddb
parent 30340 608ba935e041
child 30375 11b8b740d54a
equal deleted inserted replaced
30370:10c924596e5c 30371:fccc3eea2ddb
   553             r = repo.unfiltered().changelog
   553             r = repo.unfiltered().changelog
   554         elif dir:
   554         elif dir:
   555             if 'treemanifest' not in repo.requirements:
   555             if 'treemanifest' not in repo.requirements:
   556                 raise error.Abort(_("--dir can only be used on repos with "
   556                 raise error.Abort(_("--dir can only be used on repos with "
   557                                    "treemanifest enabled"))
   557                                    "treemanifest enabled"))
   558             dirlog = repo.manifest.dirlog(dir)
   558             dirlog = repo.manifestlog._revlog.dirlog(dir)
   559             if len(dirlog):
   559             if len(dirlog):
   560                 r = dirlog
   560                 r = dirlog
   561         elif mf:
   561         elif mf:
   562             r = repo.manifest
   562             r = repo.manifest
   563         elif file_:
   563         elif file_: