Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 30381:fccc3eea2ddb
manifest: delete unused dirlog and _newmanifest functions
As part of migrating all manifest functionality out of manifest.manifest, let's
migrate a couple spots off of manifest.dirlog() to use the revlog specific
accessor. Then we can delete manifest.dirlog() and other unused functions.
author | Durham Goode <durham@fb.com> |
---|---|
date | Thu, 10 Nov 2016 02:13:19 -0800 |
parents | 608ba935e041 |
children | 11b8b740d54a |
comparison
equal
deleted
inserted
replaced
30380:10c924596e5c | 30381: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_: |