tests: fix check for --graph option in test-log-linerange.t
authorDenis Laxalde <denis@laxalde.org>
Sun, 11 Feb 2018 14:35:35 +0100
changeset 36071 dae84ccebc57
parent 36070 f91b7f26c68a
child 36072 f3d8f61c425d
tests: fix check for --graph option in test-log-linerange.t Previous test about incompatibility of --line-range and --graph options was problematic because, even without --graph option, the command would have failed because specified path (dir/baz) did not exist as it got dropped in previous test statements. New test statements should work without --graph. This prepares for making --line-range compatible with --graph option.
tests/test-log-linerange.t
--- a/tests/test-log-linerange.t	Sun Feb 11 17:25:53 2018 +0530
+++ b/tests/test-log-linerange.t	Sun Feb 11 14:35:35 2018 +0100
@@ -172,6 +172,9 @@
   +3
   +4
   
+  $ hg log -f --graph -L foo,5:7 -p
+  abort: graph not supported with line range patterns
+  [255]
 
 With --template.
 
@@ -849,9 +852,3 @@
   $ hg log -f -L dir/baz,5:7 -p
   abort: cannot follow file not in parent revision: "dir/baz"
   [255]
-
-Graph log does work yet.
-
-  $ hg log -f -L dir/baz,5:7 --graph
-  abort: graph not supported with line range patterns
-  [255]