mercurial/templatefilters.py
branchstable
changeset 35539 d1aae6d4efc5
parent 34837 4fdc4adbc838
child 35751 6d65cef5b038
--- a/mercurial/templatefilters.py	Sun Jan 07 15:56:58 2018 +0900
+++ b/mercurial/templatefilters.py	Sun Jan 07 12:07:29 2018 +0900
@@ -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)