[PATCH stable] commands: clarify --config syntax

Wagner Bruna wagner.bruna+mercurial at gmail.com
Wed Feb 24 08:08:10 CST 2010


# HG changeset patch
# User Wagner Bruna <wbruna at softwareexpress.com.br>
# Date 1267020296 10800
# Branch stable
# Node ID 51cbd40702f5d6fa523a3060862fa3fb8cf03a63
# Parent  5203a324ba732d23f961ff9ea29160eee95afcd1
commands: clarify --config syntax

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3334,7 +3334,8 @@
      _('do not prompt, assume \'yes\' for any required answers')),
     ('q', 'quiet', None, _('suppress output')),
     ('v', 'verbose', None, _('enable additional output')),
-    ('', 'config', [], _('set/override config option')),
+    ('', 'config', [],
+     _('set/override config option (use \'section.name=value\')')),
     ('', 'debug', None, _('enable debugging output')),
     ('', 'debugger', None, _('start debugger')),
     ('', 'encoding', encoding.encoding, _('set the charset encoding')),
diff --git a/tests/test-extension.out b/tests/test-extension.out
--- a/tests/test-extension.out
+++ b/tests/test-extension.out
@@ -56,7 +56,7 @@
  -y --noninteractive  do not prompt, assume 'yes' for any required answers
  -q --quiet           suppress output
  -v --verbose         enable additional output
-    --config          set/override config option
+    --config          set/override config option (use 'section.name=value')
     --debug           enable debugging output
     --debugger        start debugger
     --encoding        set the charset encoding (default: ascii)
@@ -82,7 +82,7 @@
  -y --noninteractive  do not prompt, assume 'yes' for any required answers
  -q --quiet           suppress output
  -v --verbose         enable additional output
-    --config          set/override config option
+    --config          set/override config option (use 'section.name=value')
     --debug           enable debugging output
     --debugger        start debugger
     --encoding        set the charset encoding (default: ascii)
diff --git a/tests/test-help.out b/tests/test-help.out
--- a/tests/test-help.out
+++ b/tests/test-help.out
@@ -220,7 +220,7 @@
  -y --noninteractive  do not prompt, assume 'yes' for any required answers
  -q --quiet           suppress output
  -v --verbose         enable additional output
-    --config          set/override config option
+    --config          set/override config option (use 'section.name=value')
     --debug           enable debugging output
     --debugger        start debugger
     --encoding        set the charset encoding (default: ascii)
@@ -288,7 +288,7 @@
  -y --noninteractive  do not prompt, assume 'yes' for any required answers
  -q --quiet           suppress output
  -v --verbose         enable additional output
-    --config          set/override config option
+    --config          set/override config option (use 'section.name=value')
     --debug           enable debugging output
     --debugger        start debugger
     --encoding        set the charset encoding (default: ascii)


More information about the Mercurial-devel mailing list