diff mercurial/commands.py @ 39935:66df1059b7c0

grep: rename {line_number} to {lineno} as well (BC)
author Yuya Nishihara <yuya@tcha.org>
date Sun, 30 Sep 2018 15:37:09 +0900
parents 47cb6750dea3
children e743907d0932
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Sep 30 15:35:17 2018 +0900
+++ b/mercurial/commands.py	Sun Sep 30 15:37:09 2018 +0900
@@ -2680,7 +2680,7 @@
             except error.WdirUnsupported:
                 return ctx[fn].isbinary()
 
-        fieldnamemap = {'filename': 'path', 'linenumber': 'line_number'}
+        fieldnamemap = {'filename': 'path', 'linenumber': 'lineno'}
         if diff:
             iter = difflinestates(pstates, states)
         else: