cachedlocalrepo: use sysstr for attribute name of "file of interest"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 11:53:13 +0200
changeset 50911 1339158a8a40
parent 50910 1270677d740b
child 50912 f6cb926d4189
cachedlocalrepo: use sysstr for attribute name of "file of interest" The first item is an attribute name, the second one is a filename. So the first one can (and should) be a `str`.
mercurial/hg.py
--- a/mercurial/hg.py	Wed Aug 30 13:01:10 2023 +0200
+++ b/mercurial/hg.py	Wed Aug 30 11:53:13 2023 +0200
@@ -1599,10 +1599,10 @@
 # Used to check if the repository has changed looking at mtime and size of
 # these files.
 foi = [
-    (b'spath', b'00changelog.i'),
-    (b'spath', b'phaseroots'),  # ! phase can change content at the same size
-    (b'spath', b'obsstore'),
-    (b'path', b'bookmarks'),  # ! bookmark can change content at the same size
+    ('spath', b'00changelog.i'),
+    ('spath', b'phaseroots'),  # ! phase can change content at the same size
+    ('spath', b'obsstore'),
+    ('path', b'bookmarks'),  # ! bookmark can change content at the same size
 ]