Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 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 | 144085249c3f |
children | 0bee97fa1fa8 |
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: