config: make repo optional again
authorMatt Mackall <mpm@selenic.com>
Thu, 27 Feb 2014 23:17:37 -0600
changeset 20608 a3ca1d032926
parent 20607 abd448767465
child 20609 56ecc82fcd67
child 20618 c5ce03a898c5
config: make repo optional again
mercurial/commands.py
tests/test-basic.t
--- 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