Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG5617b748aad8: push: support config option to require revs be specified when running push
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Question: should this checking be performed in exchange.push or at the command layer?
(I'm not sure of the answer.)
I think where it is makes sense - I'd be wary of pushing it down any further having a much larger area of effect (or, conversely, no effect - it's possible that further down we always have the revs specified). This is also where it is for commands.update.requiredest.
mercurial/commands.py | ||
---|---|---|
5616 | Do we want to have this have the old behavior if plain? commands.update.requiredest doesn't respect plain. I don't think that it makes sense (or at least - it doesn't make sense to have a category for it: HGPLAINEXCEPT=make-me-specify-revs-to-push seems like it won't really be useful. :) |
A problem with moving it to exchange is that subrepos implicitly (AFAICT) push all revisions with exchange.push, even when a subset of revisions in the parent is pushed.
The current place for the check looks good. Can you follow-up by adding it to ui.tweakdefaults?
Hm, looks like this needs to be rebased on tip of hg-committed because of recent blackening of codebase.
Do we want to have this have the old behavior if plain? commands.update.requiredest doesn't respect plain. I don't think that it makes sense (or at least - it doesn't make sense to have a category for it: HGPLAINEXCEPT=make-me-specify-revs-to-push seems like it won't really be useful. :)