--- a/mercurial/templatefilters.py Fri Jan 12 10:59:58 2018 +0100
+++ b/mercurial/templatefilters.py Fri Jan 19 16:28:11 2018 -0500
@@ -90,9 +90,8 @@
@templatefilter('basename')
def basename(path):
"""Any text. Treats the text as a path, and returns the last
- component of the path after splitting by the path separator
- (ignoring trailing separators). For example, "foo/bar/baz" becomes
- "baz" and "foo/bar//" becomes "bar".
+ component of the path after splitting by the path separator.
+ For example, "foo/bar/baz" becomes "baz" and "foo/bar//" becomes "".
"""
return os.path.basename(path)