comparison 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
comparison
equal deleted inserted replaced
34904:4554649a6ea4 34905:5c7dbb730179
3278 Paths in the DAG are represented with '|', '/' and so forth. ':' in place 3278 Paths in the DAG are represented with '|', '/' and so forth. ':' in place
3279 of a '|' indicates one or more revisions in a path are omitted. 3279 of a '|' indicates one or more revisions in a path are omitted.
3280 3280
3281 .. container:: verbose 3281 .. container:: verbose
3282 3282
3283 Use -L/--line-range FILE,M-N options to follow the history of lines 3283 Use -L/--line-range FILE,M:N options to follow the history of lines
3284 from M to N in FILE. With -p/--patch only diff hunks affecting 3284 from M to N in FILE. With -p/--patch only diff hunks affecting
3285 specified line range will be shown. This option requires --follow; 3285 specified line range will be shown. This option requires --follow;
3286 it can be specified multiple times. Currently, this option is not 3286 it can be specified multiple times. Currently, this option is not
3287 compatible with --graph. This option is experimental. 3287 compatible with --graph. This option is experimental.
3288 3288
3355 3355
3356 hg log -r "last(tagged())::" --template "{desc|firstline}\\n" 3356 hg log -r "last(tagged())::" --template "{desc|firstline}\\n"
3357 3357
3358 - changesets touching lines 13 to 23 for file.c:: 3358 - changesets touching lines 13 to 23 for file.c::
3359 3359
3360 hg log -L file.c,13-23 3360 hg log -L file.c,13:23
3361 3361
3362 - changesets touching lines 13 to 23 for file.c and lines 2 to 6 of 3362 - changesets touching lines 13 to 23 for file.c and lines 2 to 6 of
3363 main.c with patch:: 3363 main.c with patch::
3364 3364
3365 hg log -L file.c,13-23 -L main.c,2-6 -p 3365 hg log -L file.c,13:23 -L main.c,2:6 -p
3366 3366
3367 See :hg:`help dates` for a list of formats valid for -d/--date. 3367 See :hg:`help dates` for a list of formats valid for -d/--date.
3368 3368
3369 See :hg:`help revisions` for more about specifying and ordering 3369 See :hg:`help revisions` for more about specifying and ordering
3370 revisions. 3370 revisions.