##// END OF EJS Templates
templater: shorten pure integers...
Sean Farley -
r20539:aa021ece default
parent child Browse files
Show More
@@ -416,7 +416,12 b' def shortest(context, mapping, args):'
416 return False
416 return False
417
417
418 try:
418 try:
419 int(test)
419 i = int(test)
420 # if we are a pure int, then starting with zero will not be
421 # confused as a rev; or, obviously, if the int is larger than
422 # the value of the tip rev
423 if test[0] == '0' or i > len(cl):
424 return True
420 return False
425 return False
421 except ValueError:
426 except ValueError:
422 return True
427 return True
General Comments 0
You need to be logged in to leave comments. Login now