diff --git a/mercurial/fileset.py b/mercurial/fileset.py
index 8da94662afe51a836eda500652097772c34002e8_bWVyY3VyaWFsL2ZpbGVzZXQucHk=..4f8ced23345e61dda5b26b2db61a9461322201f9_bWVyY3VyaWFsL2ZpbGVzZXQucHk= 100644
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -435,8 +435,8 @@
     styles.
     """
 
-    # i18n: "encoding" is a keyword
-    enc = getstring(x, _("encoding requires an encoding name"))
+    # i18n: "eol" is a keyword
+    enc = getstring(x, _("eol requires a style name"))
 
     s = []
     for f in mctx.existing():