Mercurial > hg
comparison tests/test-log-linerange.t @ 34907:0ccfc468423a
log: handle removed files with --line-range patterns
I.e. abort when the pattern corresponds to a removed file, as done with bare
file patterns.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 19 Oct 2017 14:55:10 +0200 |
parents | 2e45bbd3db7b |
children | af924308110a |
comparison
equal
deleted
inserted
replaced
34906:2e45bbd3db7b | 34907:0ccfc468423a |
---|---|
840 $ cd .. | 840 $ cd .. |
841 $ hg log -f -L glob:*a*,1:2 | 841 $ hg log -f -L glob:*a*,1:2 |
842 hg: parse error: line range pattern 'glob:*a*' must match exactly one file | 842 hg: parse error: line range pattern 'glob:*a*' must match exactly one file |
843 [255] | 843 [255] |
844 | 844 |
845 We get an error for removed files. | |
846 | |
847 $ hg rm dir/baz | |
848 $ hg ci -m 'remove baz' --quiet | |
849 $ hg log -f -L dir/baz,5:7 -p | |
850 abort: cannot follow file not in parent revision: "dir/baz" | |
851 [255] | |
852 | |
845 Graph log does work yet. | 853 Graph log does work yet. |
846 | 854 |
847 $ hg log -f -L dir/baz,5:7 --graph | 855 $ hg log -f -L dir/baz,5:7 --graph |
848 abort: graph not supported with line range patterns | 856 abort: graph not supported with line range patterns |
849 [255] | 857 [255] |