devel: rename 'all' to 'all-warnings' (BC)
We have started to isolate extra usecases for developer-only output
that is not a warning. As the section has the fairly generic name
'devel' it makes sense to tuck them there. As a result, 'all' becomes
a bit misleading so we rename it to 'all-warnings'. This will break
some developer setups but the tests are still fine and developers will
likely spot this change.
--- a/mercurial/localrepo.py Tue May 26 14:52:47 2015 -0500
+++ b/mercurial/localrepo.py Tue May 26 14:14:36 2015 -0700
@@ -944,7 +944,7 @@
return None
def transaction(self, desc, report=None):
- if (self.ui.configbool('devel', 'all')
+ if (self.ui.configbool('devel', 'all-warnings')
or self.ui.configbool('devel', 'check-locks')):
l = self._lockref and self._lockref()
if l is None or not l.held:
@@ -1249,7 +1249,7 @@
# We do not need to check for non-waiting lock aquisition. Such
# acquisition would not cause dead-lock as they would just fail.
- if wait and (self.ui.configbool('devel', 'all')
+ if wait and (self.ui.configbool('devel', 'all-warnings')
or self.ui.configbool('devel', 'check-locks')):
l = self._lockref and self._lockref()
if l is not None and l.held:
--- a/tests/run-tests.py Tue May 26 14:52:47 2015 -0500
+++ b/tests/run-tests.py Tue May 26 14:14:36 2015 -0700
@@ -758,7 +758,7 @@
hgrc.write(b'shelve = --date "0 0"\n')
hgrc.write(b'tag = -d "0 0"\n')
hgrc.write(b'[devel]\n')
- hgrc.write(b'all = true\n')
+ hgrc.write(b'all-warnings = true\n')
hgrc.write(b'[largefiles]\n')
hgrc.write(b'usercache = %s\n' %
(os.path.join(self._testtmp, b'.cache/largefiles')))
--- a/tests/test-basic.t Tue May 26 14:52:47 2015 -0500
+++ b/tests/test-basic.t Tue May 26 14:14:36 2015 -0700
@@ -5,7 +5,7 @@
defaults.commit=-d "0 0"
defaults.shelve=--date "0 0"
defaults.tag=-d "0 0"
- devel.all=true
+ devel.all-warnings=true
largefiles.usercache=$TESTTMP/.cache/largefiles (glob)
ui.slash=True
ui.interactive=False
--- a/tests/test-commandserver.t Tue May 26 14:52:47 2015 -0500
+++ b/tests/test-commandserver.t Tue May 26 14:14:36 2015 -0700
@@ -178,7 +178,7 @@
defaults.commit=-d "0 0"
defaults.shelve=--date "0 0"
defaults.tag=-d "0 0"
- devel.all=true
+ devel.all-warnings=true
largefiles.usercache=$TESTTMP/.cache/largefiles
ui.slash=True
ui.interactive=False
--- a/tests/test-devel-warnings.t Tue May 26 14:52:47 2015 -0500
+++ b/tests/test-devel-warnings.t Tue May 26 14:14:36 2015 -0700
@@ -44,7 +44,7 @@
> [extensions]
> buggylocking=$TESTTMP/buggylocking.py
> [devel]
- > all=1
+ > all-warnings=1
> EOF
$ hg init lock-checker