Show More
@@ -215,6 +215,11 b' def showstack(ui, repo, displayer):' | |||||
215 |
|
215 | |||
216 | stackrevs.add(ctx.rev()) |
|
216 | stackrevs.add(ctx.rev()) | |
217 |
|
217 | |||
|
218 | # ctx.children() within a function iterating on descandants | |||
|
219 | # potentially has severe performance concerns because revlog.children() | |||
|
220 | # iterates over all revisions after ctx's node. However, the number of | |||
|
221 | # draft changesets should be a reasonably small number. So even if | |||
|
222 | # this is quadratic, the perf impact should be minimal. | |||
218 | if len(ctx.children()) > 1: |
|
223 | if len(ctx.children()) > 1: | |
219 | branchpointattip = True |
|
224 | branchpointattip = True | |
220 | break |
|
225 | break |
General Comments 0
You need to be logged in to leave comments.
Login now