Patchwork [1,of,9,v3] cmdutil: open dirlogs via manifest property, not via repo

login
register
mail settings
Submitter Augie Fackler
Date Aug. 5, 2016, 9:45 p.m.
Message ID <213fc73c4433d4cc0152.1470433502@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/16133/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 5, 2016, 9:45 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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: