From a684e53a311abc1b2a2bd19768bf35fc4d34aaf9 Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Fri, 2 Oct 2020 16:49:04 -0700 Subject: [PATCH] phabstatus: wrap all logrevs with PeekaheadRevsetIter Summary: Previously, only the first `__iter__` gets wrapped. With D23095468 (https://github.com/facebookexperimental/eden/commit/34df76813652c73c9ad683700d15d1bce9f4a3e0), the first `__iter__` is used by the "simplify graph" feature, not the main iteration loop rendering the graph log output, causing the prefetch feature to fail. File "edenscm/mercurial/commands/__init__.py", line 4196, in log return cmdutil.graphlog(ui, repo, pats, opts) # pats = () File "edenscm/mercurial/cmdutil.py", line 3250, in graphlog ui, repo, revdag, displayer, graphmod.asciiedges, getrenamed, filematcher File "edenscm/mercurial/cmdutil.py", line 3106, in displaygraph rustdisplaygraph(ui, repo, dag, displayer, getrenamed, filematcher, props) File "edenscm/mercurial/cmdutil.py", line 3208, in rustdisplaygraph for (rev, _type, ctx, parents) in dag: File "edenscm/mercurial/graphmod.py", line 63, in dagwalker rootnodes = cl.tonodes(revs) # revs =