This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Add a `rhg.on-unsupported` configuration key
ClosedPublic

Authored by SimonSapin on Mar 2 2021, 2:58 PM.

Details

Summary

For now the two values are:

  • abort-silent: silently exit with code 252, the previous default behavior
  • abort: print an error message about what feature is not supported, then exit with code 252. Now the default.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

SimonSapin created this revision.Mar 2 2021, 2:58 PM
SimonSapin edited the summary of this revision. (Show Details)Mar 4 2021, 6:10 AM
SimonSapin updated this revision to Diff 26049.
Alphare added a subscriber: Alphare.Mar 5 2021, 3:27 AM

Your changeset description uses abort twice, FYI, otherwise this looks good.

SimonSapin edited the summary of this revision. (Show Details)Mar 5 2021, 3:30 AM
Alphare accepted this revision.Mar 5 2021, 3:30 AM
SimonSapin updated this revision to Diff 26165.Mar 9 2021, 4:39 AM

That seems good. Maybe we will want to control both aspect of the behavior (abort/fallback) and (message/no-message) independently as you seemed to suggest in a meeting we had today. However this is far too premature to think about that (we don't even have a fallback yet). So this seems fine as it is now.

pulkit accepted this revision.Mar 10 2021, 1:31 PM
This revision is now accepted and ready to land.Mar 10 2021, 1:31 PM
This revision was automatically updated to reflect the committed changes.