comparison hgext/share.py @ 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 cbcd85fa75c0
children d2ce7a20fe86
comparison
equal deleted inserted replaced
20538:fe220013e4db 20539:aa021ece4506