--- a/mercurial/narrowspec.py Mon Jul 22 16:49:38 2024 +0200
+++ b/mercurial/narrowspec.py Tue Jul 23 10:02:46 2024 +0200
@@ -225,6 +225,7 @@
m = "changing narrow spec outside of a transaction"
raise error.ProgrammingError(m)
else:
+
reporef = weakref.ref(repo)
def clean_pending(tr):