# HG changeset patch # User Matt Mackall # Date 2014-02-28 05:17:37 # Node ID a3ca1d032926bdd4824ae1135716112cb6b747f6 # Parent abd44876746524c205abf3845f48d323e2ea7c0a config: make repo optional again diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5877,7 +5877,7 @@ def version_(ui): 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") diff --git a/tests/test-basic.t b/tests/test-basic.t --- a/tests/test-basic.t +++ b/tests/test-basic.t @@ -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