diff tests/test-config.t @ 22316:816be4ca4ae2 stable

config: exit non zero on non-existent config option (issue4247) When running 'hg config no_such_option', hg exited with a zero exit code. This change now exits with a 1 if the config option does not exist.
author Aaron Kushner <akushner@fb.com>
date Tue, 19 Aug 2014 16:57:02 -0700
parents 7d82ad4b3727
children c5df4af17110
line wrap: on
line diff
--- a/tests/test-config.t	Sat Aug 30 15:13:02 2014 +0200
+++ b/tests/test-config.t	Tue Aug 19 16:57:02 2014 -0700
@@ -42,3 +42,8 @@
 
   $ hg showconfig unsettest
   unsettest.set-after-unset=should be set (.hg/hgrc)
+
+Test exit code when no config matches
+
+  $ hg config Section.idontexist
+  [1]