Patchwork [1,of,2] tests: fix check for --graph option in test-log-linerange.t

login
register
mail settings
Submitter Denis Laxalde
Date Feb. 11, 2018, 4:57 p.m.
Message ID <50e9309bc899d5366811.1518368240@marimba>
Download mbox | patch
Permalink /patch/27574/
State Superseded
Headers show

Comments

Denis Laxalde - Feb. 11, 2018, 4:57 p.m.
# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1518356135 -3600
#      Sun Feb 11 14:35:35 2018 +0100
# Node ID 50e9309bc899d5366811e8da9fe4dcc303aa4796
# Parent  de0666564bde7c67c4d40a44dcf50515fef2f367
# EXP-Topic log/linerange-graph
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.

Patch

diff --git a/tests/test-log-linerange.t b/tests/test-log-linerange.t
--- a/tests/test-log-linerange.t
+++ b/tests/test-log-linerange.t
@@ -172,6 +172,9 @@  Add some changes with two diff hunks
   +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 @@  We get an error for removed files.
   $ 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]