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

Augie Fackler raf at durin42.com
Fri Aug 5 17:45:03 EDT 2016


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1470416461 14400
#      Fri Aug 05 13:01:01 2016 -0400
# Node ID f93baa31b02114f4a61513b9ee03333a390155bf
# Parent  213fc73c4433d4cc0152dada40dd98a50c2f0229
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.

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()


More information about the Mercurial-devel mailing list