equal
deleted
inserted
replaced
213 if ctx.phase() == phases.public: |
213 if ctx.phase() == phases.public: |
214 break |
214 break |
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 |
221 |
226 |
222 stackrevs = list(sorted(stackrevs, reverse=True)) |
227 stackrevs = list(sorted(stackrevs, reverse=True)) |