Details
- Reviewers
martinvonz marmoute Alphare pulkit - Group Reviewers
hg-reviewers - Commits
- rHGa391d0710f22: rewriteutil: add utility to check whether empty successors should be skipped
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
mercurial/rewriteutil.py | ||
---|---|---|
65–72 | I think we usually treat bad config as no config, i.e. use the default ("skip" in this case). You may want to check if I seem to be right about that. |
mercurial/rewriteutil.py | ||
---|---|---|
65–72 | I found cases where an error was raised if an invalid value was used, e.g. https://phab.mercurial-scm.org/diffusion/HG/browse/default/mercurial/merge.py$605 I think that errors should never pass silently. I might sent patches (after the next release) to make it possible to enumerate all legal values in configitems and raise an error if another value was specified. |
mercurial/rewriteutil.py | ||
---|---|---|
65–72 | I also feel like this "bad config is no config" has only bitten me and never been a feature, I vote for the ConfigError. |
mercurial/rewriteutil.py | ||
---|---|---|
65–72 |
I agree. I was trying to think what the reason for ignoring bad config might be. I tried to think if backward- or forward-compatibility would explain it, but I can't think of a scenario where it makes sense to allow bad config. @durin42, do you know why we've mostly allowed bad config? |
I think we usually treat bad config as no config, i.e. use the default ("skip" in this case). You may want to check if I seem to be right about that.