mercurial/revlogutils/deltas.py
changeset 49793 b670eb3dd6c9
parent 49792 efbbc2f9121e
child 49794 40e24d82b513
--- a/mercurial/revlogutils/deltas.py	Sun Nov 06 16:56:23 2022 -0500
+++ b/mercurial/revlogutils/deltas.py	Sun Nov 06 17:55:46 2022 -0500
@@ -989,8 +989,7 @@
     __slots__ = ('snapshots', '_start_rev', '_end_rev')
 
     def __init__(self):
-        # XXX should probably be a set ?
-        self.snapshots = collections.defaultdict(list)
+        self.snapshots = collections.defaultdict(set)
         self._start_rev = None
         self._end_rev = None
 
@@ -1038,7 +1037,7 @@
             issnapshot = revlog.issnapshot
             for rev in revlog.revs(start_rev, end_rev):
                 if issnapshot(rev):
-                    cache[deltaparent(rev)].append(rev)
+                    cache[deltaparent(rev)].add(rev)
 
 
 class deltacomputer: