diff tests/test-hgrc.t @ 20789:d19c9bdbbf35

config: don't set source when no source is specified - don't overwrite with '' This prevents ui.fixconfig from overwriting the source of paths and it will thus show up in showconfig --debug.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 19 Mar 2014 02:45:14 +0100
parents f144928dd058
children b13b99d39a46
line wrap: on
line diff
--- a/tests/test-hgrc.t	Wed Mar 19 02:45:04 2014 +0100
+++ b/tests/test-hgrc.t	Wed Mar 19 02:45:14 2014 +0100
@@ -201,3 +201,14 @@
   --verbose: ui.verbose=False
   --debug: ui.debug=True
   --quiet: ui.quiet=False
+
+source of paths is not mangled
+
+  $ cat >> $HGRCPATH <<EOF
+  > [paths]
+  > foo = bar
+  > EOF
+  $ hg showconfig --debug paths
+  plain: True
+  read config from: $TESTTMP/hgrc
+  $TESTTMP/hgrc:17: paths.foo=$TESTTMP/bar