[PATCH 1 of 9 v3] cmdutil: open dirlogs via manifest property, not via repo
Augie Fackler
raf at durin42.com
Fri Aug 5 21:45:02 UTC 2016
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1470416433 14400
# Fri Aug 05 13:00:33 2016 -0400
# Node ID 213fc73c4433d4cc0152dada40dd98a50c2f0229
# Parent 834b8ac4a7587562dccb527b28606ecf5532e883
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.
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -549,7 +549,7 @@ def openrevlog(repo, cmd, file_, opts):
if 'treemanifest' not in repo.requirements:
raise error.Abort(_("--dir can only be used on repos with "
"treemanifest enabled"))
- dirlog = repo.dirlog(dir)
+ dirlog = repo.manifest.dirlog(dir)
if len(dirlog):
r = dirlog
elif mf:
More information about the Mercurial-devel
mailing list