[PATCH 1 of 9 v2] cmdutil: open dirlogs via manifest property, not via repo
Augie Fackler
raf at durin42.com
Fri Aug 5 17:23:39 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 4aacf9f4cdbccaaaa6caf0c8cbe5dae68700ac95
# Parent 3ef9aa7ad1fc4c43b92d48e4bb1f4e3de68b6910
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