diff mercurial/templatefilters.py @ 35751:6d65cef5b038

merge with stable
author Augie Fackler <augie@google.com>
date Fri, 19 Jan 2018 16:28:11 -0500
parents dad8a5071b0a d1aae6d4efc5
children 9ee10b3284da
line wrap: on
line diff
--- 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)