[PATCH] tests: test for dispatch on [defaults]: more clearly differing output

Cédric Duval cedricduval at free.fr
Sun May 24 15:16:00 CDT 2009


# HG changeset patch
# User Cédric Duval <cedricduval at free.fr>
# Date 1243196148 -7200
# Node ID 167ccf0745d1140f15a08939ad37b454e379c96b
# Parent  4a7bab44f129e7527a7e201ca7f2d76d5eeb46ac
tests: test for dispatch on [defaults]: more clearly differing output

Using '-r null' instead of '-v' as the overriden command default.
The latter did not have any effect on output, thus not giving much
indication on whether the modified defaults were really in use or not.

diff --git a/tests/test-dispatch b/tests/test-dispatch
--- a/tests/test-dispatch
+++ b/tests/test-dispatch
@@ -15,7 +15,7 @@ echo '% [defaults]'
 hg cat a
 cat >> $HGRCPATH <<EOF
 [defaults]
-cat = -v
+cat = -r null
 EOF
 hg cat a
 
diff --git a/tests/test-dispatch.out b/tests/test-dispatch.out
--- a/tests/test-dispatch.out
+++ b/tests/test-dispatch.out
@@ -28,6 +28,6 @@ options:
 use "hg -v help cat" to show global options
 % [defaults]
 a
-a
+a: No such file in rev 000000000000
 % no repo
 abort: There is no Mercurial repository here (.hg not found)!



More information about the Mercurial-devel mailing list