templatekw: fix crash on multiple latesttags resolution at wdir (issue6055)

Authored by yuja.

Description

templatekw: fix crash on multiple latesttags resolution at wdir (issue6055)

It appears not easy to fix only() to support wdir(), so this patch works
around the issue by getlatesttags(). The "+1" after len(changes) doesn't
matter since ctx never changes while sorting. It's just for clarity.

Details

Committed
yujaJan 19 2019, 9:51 PM
Parents
rHGff1222a7d714: test-template-keywords: add test for {latesttag} of wdir() revision
Branches
Unknown
Tags
Unknown