Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.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 | b1e3f609bf45 |
children | 2e45bbd3db7b |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Oct 18 19:00:33 2017 +0200 +++ b/mercurial/commands.py Thu Oct 19 12:37:26 2017 +0200 @@ -3280,7 +3280,7 @@ .. container:: verbose - Use -L/--line-range FILE,M-N options to follow the history of lines + Use -L/--line-range FILE,M:N options to follow the history of lines from M to N in FILE. With -p/--patch only diff hunks affecting specified line range will be shown. This option requires --follow; it can be specified multiple times. Currently, this option is not @@ -3357,12 +3357,12 @@ - changesets touching lines 13 to 23 for file.c:: - hg log -L file.c,13-23 + hg log -L file.c,13:23 - changesets touching lines 13 to 23 for file.c and lines 2 to 6 of main.c with patch:: - hg log -L file.c,13-23 -L main.c,2-6 -p + hg log -L file.c,13:23 -L main.c,2:6 -p See :hg:`help dates` for a list of formats valid for -d/--date.