D3439: template filters: add commonprefix

Yuya Nishihara yuya at tcha.org
Sun May 6 08:28:47 EDT 2018


Can you add test for failure cases? such as

* `str|commonprefix`
* `int|commonprefix`
* nothing common (e.g. `["/foo", "bar"]`)
* empty list
* paths normalized by `os.path.normcase()`

`os.path.commonprefix()` isn't what we want, but it might provide some hints.


More information about the Mercurial-devel mailing list