Patchwork [2,of,9,v2] repair: build dirlogs using manifest, rather than repo shortcut method

login
register
mail settings
Submitter Augie Fackler
Date Aug. 5, 2016, 5:23 p.m.
Message ID <7292a7ab963797425eeb.1470417820@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/16128/
State Superseded
Headers show

Comments

Augie Fackler - Aug. 5, 2016, 5:23 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1470416461 14400
#      Fri Aug 05 13:01:01 2016 -0400
# Node ID 7292a7ab963797425eeb5d470e661e7d80dd7466
# Parent  4aacf9f4cdbccaaaa6caf0c8cbe5dae68700ac95
repair: build dirlogs using manifest, rather than repo shortcut method

As before, this was rarely used, so let's get rid of the convenience method.

Patch

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -173,7 +173,7 @@  def strip(ui, repo, nodelist, backup=Tru
                     if (unencoded.startswith('meta/') and
                         unencoded.endswith('00manifest.i')):
                         dir = unencoded[5:-12]
-                        repo.dirlog(dir).strip(striprev, tr)
+                        repo.manifest.dirlog(dir).strip(striprev, tr)
             for fn in files:
                 repo.file(fn).strip(striprev, tr)
             tr.endgroup()