mercurial/templatefilters.py
changeset 35751 6d65cef5b038
parent 35444 dad8a5071b0a
parent 35539 d1aae6d4efc5
child 36246 9ee10b3284da
--- 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)