Submitter | Gregory Szorc |
---|---|
Date | July 4, 2017, 4:32 a.m. |
Message ID | <43ea32fe0c696b2ff2ab.1499142761@ubuntu-vm-main> |
Download | mbox | patch |
Permalink | /patch/21965/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext/show.py b/hgext/show.py --- a/hgext/show.py +++ b/hgext/show.py @@ -215,6 +215,11 @@ def showstack(ui, repo, displayer): stackrevs.add(ctx.rev()) + # ctx.children() within a function iterating on descandants + # potentially has severe performance concerns because revlog.children() + # iterates over all revisions after ctx's node. However, the number of + # draft changesets should be a reasonably small number. So even if + # this is quadratic, the perf impact should be minimal. if len(ctx.children()) > 1: branchpointattip = True break