comparison mercurial/templater.py @ 28494:63653147e9bb

changelog: parse description last Before, we first searched for the double newline as the first step in the parse then moved to the front of the string and worked our way to the back again. This made sense when we were splitting the raw text on the double newline. But in our new newline scanning based approach, this feels awkward. This patch updates the parsing logic to parse the text linearly and deal with the description field last. Because we're avoiding an extra string scan, revsets appear to demonstrate a very slight performance win. But the percentage change is marginal, so the numbers aren't worth reporting.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Mar 2016 13:13:54 -0800
parents dbba18ba26d4
children 1d461ee26e1b
comparison
equal deleted inserted replaced
28493:7796473c11b3 28494:63653147e9bb