I think this is a better way of surfacing this warning. It also allows
us to tweak the message so we can point at new documentation I have already
written up.
Details
- Reviewers
mbthomas durham singhsrb - Group Reviewers
Restricted Project - Commits
- rFBHGXfb29ea176fba: tweakdefaults: explicitly enable/disable single colon warning
Updated test
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Branch
- arcpatch-D812 (bookmark) on default (branch)
- Lint
Lint OK - Unit
Unit Test Errors
Event Timeline
hgext3rd/tweakdefaults.py | ||
---|---|---|
705–708 | You should add a test for setting this option. |
In my opinion, _analyzewrapper can be extended to do additional analysis over the analysis it does right now. So, I prefer having develwarn config option as in D802 which disables all the analysis. It also seems fine to have both the config options: develwarn and singlecolonwarn.
tests/test-tweakdefaults.t | ||
---|---|---|
1 | This is bad use for test cases since only a portion of the test is executed conditionally and the rest of the test is executed twice leading to a lot of redundancy. I added the test cases in D802 without realizing this and therefore, fixed this in D814. I think for the testing (as confirmed by @quark):
|
I think the : warning is mainly for users, not (Mercurial) developers. So I prefer the explicit singlecolonwarn name. It also feels more consistent with other tweakdefaults config options.
There is a devel.all-warnings config in core Mercurial which is for developer warnings.
It seems someone has to handle some merge conflicts. It seems easier practically to apply D814 first, then do a replace and run run-tests.py -i.
You should add a test for setting this option.