templatefilters: add commonprefix

Authored by joerg.sonnenberger.

Description

templatefilters: add commonprefix

The commonprefix filter takes a list of files names like files() and
returns the longest directory name common to all elements.

Differential Revision: https://phab.mercurial-scm.org/D3439

Details

Committed
joerg.sonnenbergerApr 20 2018, 9:21 AM
Differential Revision
D3439: templatefilters: add commonprefix
Parents
rHGc019db5ccfa1: py3: add 3 new passing tests to whitelist
Branches
Unknown
Tags
Unknown