changeset 20608:a3ca1d032926

config: make repo optional again
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Feb 2014 23:17:37 -0600
parents abd448767465
children 56ecc82fcd67 c5ce03a898c5
files mercurial/commands.py tests/test-basic.t
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Feb 28 02:28:12 2014 +0100
+++ b/mercurial/commands.py	Thu Feb 27 23:17:37 2014 -0600
@@ -5877,7 +5877,7 @@
 norepo = ("clone init version help debugcommands debugcomplete"
           " debugdate debuginstall debugfsinfo debugpushkey debugwireargs"
           " debugknown debuggetbundle debugbundle")
-optionalrepo = ("identify paths serve showconfig debugancestor debugdag"
+optionalrepo = ("identify paths serve config showconfig debugancestor debugdag"
                 " debugdata debugindex debugindexdot debugrevlog")
 inferrepo = ("add addremove annotate cat commit diff grep forget log parents"
              " remove resolve status debugwalk")
--- a/tests/test-basic.t	Fri Feb 28 02:28:12 2014 +0100
+++ b/tests/test-basic.t	Thu Feb 27 23:17:37 2014 -0600
@@ -1,5 +1,12 @@
 Create a repository:
 
+  $ hg config
+  defaults.backout=-d "0 0"
+  defaults.commit=-d "0 0"
+  defaults.shelve=--date "0 0"
+  defaults.tag=-d "0 0"
+  ui.slash=True
+  ui.interactive=False
   $ hg init t
   $ cd t