hgext/remotefilelog/basepack.py
changeset 44452 9d2b2df2c2ba
parent 44062 2d49482d0dd4
child 46113 59fa3890d40a
--- a/hgext/remotefilelog/basepack.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/hgext/remotefilelog/basepack.py	Fri Mar 06 13:27:41 2020 -0500
@@ -101,7 +101,7 @@
             self._lastpack = pack
             yield pack
 
-        cachedpacks = set(pack for pack in self._lrucache)
+        cachedpacks = {pack for pack in self._lrucache}
         # Yield for paths not in the cache.
         for pack in self._packs - cachedpacks:
             self._lastpack = pack
@@ -259,7 +259,7 @@
         newpacks = []
         if now > self.lastrefresh + REFRESHRATE:
             self.lastrefresh = now
-            previous = set(p.path for p in self.packs)
+            previous = {p.path for p in self.packs}
             for filepath, __, __ in self._getavailablepackfilessorted():
                 if filepath not in previous:
                     newpack = self.getpack(filepath)