comparison mercurial/cmdutil.py @ 29720:a1082645d623

cmdutil: open dirlogs via manifest property, not via repo This was a convenience method that was rarely used, so let's get rid of it.
author Augie Fackler <augie@google.com>
date Fri, 05 Aug 2016 13:00:33 -0400
parents bc5148d0a446
children 84a8de5ac901
comparison
equal deleted inserted replaced
29719:7f6130c7ffe1 29720:a1082645d623
547 r = repo.unfiltered().changelog 547 r = repo.unfiltered().changelog
548 elif dir: 548 elif dir:
549 if 'treemanifest' not in repo.requirements: 549 if 'treemanifest' not in repo.requirements:
550 raise error.Abort(_("--dir can only be used on repos with " 550 raise error.Abort(_("--dir can only be used on repos with "
551 "treemanifest enabled")) 551 "treemanifest enabled"))
552 dirlog = repo.dirlog(dir) 552 dirlog = repo.manifest.dirlog(dir)
553 if len(dirlog): 553 if len(dirlog):
554 r = dirlog 554 r = dirlog
555 elif mf: 555 elif mf:
556 r = repo.manifest 556 r = repo.manifest
557 elif file_: 557 elif file_: