changeset 35444 | dad8a5071b0a |
parent 34837 | 4fdc4adbc838 |
child 35751 | 6d65cef5b038 |
--- a/mercurial/templatefilters.py Thu Dec 14 22:26:46 2017 +0900 +++ b/mercurial/templatefilters.py Sat Oct 21 17:19:02 2017 +0900 @@ -349,6 +349,11 @@ """Date. Returns a date like "2006-09-18".""" return util.shortdate(text) +@templatefilter('slashpath') +def slashpath(path): + """Any text. Replaces the native path separator with slash.""" + return util.pconvert(path) + @templatefilter('splitlines') def splitlines(text): """Any text. Split text into a list of lines."""