diff mercurial/revset.py @ 41576:1c04894e8fe1

revset: allow to parse single integer as a range Even though this wouldn't be any useful in followlines(), it helps to unify range processing.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 27 Jan 2019 13:28:45 +0900
parents 59638c6fcb70
children 13f7a6a4f0db
line wrap: on
line diff
--- a/mercurial/revset.py	Sun Jan 27 13:18:53 2019 +0900
+++ b/mercurial/revset.py	Sun Jan 27 13:28:45 2019 +0900
@@ -1071,7 +1071,7 @@
     fromline, toline = util.processlinerange(
         *getintrange(args['lines'][0],
                      # i18n: "followlines" is a keyword
-                     _("followlines expects a line range"),
+                     _("followlines expects a line number or a range"),
                      _("line range bounds must be integers")))
 
     fctx = repo[rev].filectx(fname)