diff mercurial/cmdutil.py @ 34905:5c7dbb730179

log: switch to FROMLINE:TOLINE syntax for -L/--line-range This is more consistent with the followlines() revset.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Thu, 19 Oct 2017 12:37:26 +0200
parents 4554649a6ea4
children 0ccfc468423a
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Oct 18 19:00:33 2017 +0200
+++ b/mercurial/cmdutil.py	Thu Oct 19 12:37:26 2017 +0200
@@ -2599,7 +2599,7 @@
         except ValueError:
             raise error.Abort(_('malformatted line-range pattern %s') % pat)
         try:
-            fromline, toline = map(int, linerange.split('-'))
+            fromline, toline = map(int, linerange.split(':'))
         except ValueError:
             raise error.Abort(_("invalid line range for %s") % pat)
         msg = _("line range pattern '%s' must match exactly one file") % pat