--- a/mercurial/dirstatemap.py Sat Oct 26 02:03:54 2024 +0200
+++ b/mercurial/dirstatemap.py Sat Oct 26 01:38:20 2024 +0200
@@ -113,8 +113,12 @@
self.identity = self._get_current_identity()
def _get_current_identity(self) -> Optional[typelib.CacheStat]:
+ # TODO have a cleaner approach on httpstaticrepo side
+ path = self._opener.join(self._filename)
+ if path.startswith(b'https://') or path.startswith(b'http://'):
+ return util.uncacheable_cachestat()
try:
- return util.cachestat(self._opener.join(self._filename))
+ return util.cachestat(path)
except FileNotFoundError:
return None