mercurial/templatefilters.py
changeset 38304 fabfbbf4dee2
parent 38300 74b4a54002ec
child 38783 e7aa113b14f7
--- a/mercurial/templatefilters.py	Wed Jun 13 10:24:44 2018 -0400
+++ b/mercurial/templatefilters.py	Wed Jun 13 14:28:39 2018 -0700
@@ -99,8 +99,8 @@
     """
     return os.path.basename(path)
 
-@templatefilter('commonprefix')
-def commonprefix(filelist):
+@templatefilter('commondir')
+def commondir(filelist):
     """List of text. Treats each list item as file name with /
     as path separator and returns the longest common directory
     prefix shared by all list items.