comparison mercurial/ui.py @ 35406:76dcdc4e707b

hgweb: filter graphmod.colored() output before iterating over it Consumers in this function use output of graphmod.colored(), but only want items with type == CHANGESET, so let's filter it early. This is primarily just a refactoring, but it also fixes a potential small bug with `rows = len(tree)` (this variable is used for "Rows shown" line in raw-graph) if there are items of other types.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 08 Dec 2017 21:50:11 +0800
parents 4e377c43e80b
children e49c39ffeac2
comparison
equal deleted inserted replaced
35405:e66d6e938d2d 35406:76dcdc4e707b