mercurial/context.py
changeset 52644 e627cc25b6f3
parent 52643 5cc8deb96b48
child 52721 f071b18e1382
--- a/mercurial/context.py	Sun Jan 05 22:23:31 2025 -0500
+++ b/mercurial/context.py	Sun Jan 05 22:26:16 2025 -0500
@@ -1534,8 +1534,7 @@
         return self._parents[0].ancestor(c2)  # punt on two parents for now
 
     def ancestors(self):
-        for p in self._parents:
-            yield p
+        yield from self._parents
         for a in self._repo.changelog.ancestors(
             [p.rev() for p in self._parents]
         ):