comparison tests/test-diff-color.t @ 20539:aa021ece4506

templater: shorten pure integers Originally, the addition of the 'shorten' template function in 9c6b86dd2ed2 would not consider pure integers for shortening. This patch considers two simple cases: when the integer starts with zero (which is parsed by Mercurial as a hash first) and when the integer is larger than the tip (obviously not a rev).
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 20 Feb 2014 00:46:13 -0600
parents 0ade08dcb3c3
children c343557a8442
comparison
equal deleted inserted replaced
20538:fe220013e4db 20539:aa021ece4506