diff hgext/lfs/__init__.py @ 41230:d2d716cc0700

narrow: extract repo property for store narrowmatcher When a repo lock is released, we try to persist the manifest cache. That involves getting the narrowmatcher for the manifestlog. That should not fail if the store and working copy narrowspecs are out of sync. Without this patch, the later patches in this series will fail because of that. Differential Revision: https://phab.mercurial-scm.org/D5508
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 29 Dec 2018 23:35:05 -0800
parents 8f40e21ca842
children c9e1104e6272
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Sat Dec 29 23:01:12 2018 -0800
+++ b/hgext/lfs/__init__.py	Sat Dec 29 23:35:05 2018 -0800
@@ -243,7 +243,7 @@
                 s = repo.set('%n:%n', _bin(kwargs[r'node']), _bin(last))
             else:
                 s = repo.set('%n', _bin(kwargs[r'node']))
-            match = repo.narrowmatch()
+            match = repo._storenarrowmatch
             for ctx in s:
                 # TODO: is there a way to just walk the files in the commit?
                 if any(ctx[f].islfs() for f in ctx.files()