diff mercurial/rewriteutil.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 490df753894d
children 8c6329fa6038
line wrap: on
line diff