diff hgext/largefiles/reposetup.py @ 51624:e32f23f15623

largefiles: mark more matchers as having been tampered with These happened to slip through the cracks earlier because they weren't caught by tests. Now that we're enabling rust fast path more widely these start breaking.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 26 Apr 2024 19:43:42 +0100
parents 862e3a13da44
children 493034cc3265
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Mon May 06 18:50:21 2024 +0200
+++ b/hgext/largefiles/reposetup.py	Fri Apr 26 19:43:42 2024 +0100
@@ -181,6 +181,7 @@
                     return newfiles
 
                 m = copy.copy(match)
+                m._was_tampered_with = True
                 m._files = tostandins(m._files)
 
                 result = orig(
@@ -193,6 +194,7 @@
                         dirstate = self.dirstate
                         return sf in dirstate or dirstate.hasdir(sf)
 
+                    match._was_tampered_with = True
                     match._files = [f for f in match._files if sfindirstate(f)]
                     # Don't waste time getting the ignored and unknown
                     # files from lfdirstate