Mercurial > hg-stable
changeset 25290:8f88f768e24c
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 26 May 2015 14:14:36 -0700 |
parents | 6ac860f700b5 |
children | 85f1aaf18ecb |
files | mercurial/localrepo.py tests/run-tests.py tests/test-basic.t tests/test-commandserver.t tests/test-devel-warnings.t |
diffstat | 5 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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