This is an archive of the discontinued Mercurial Phabricator instance.

scmutil: add option to register summary callbacks as transaction validators
ClosedPublic

Authored by pulkit on Feb 29 2020, 2:31 AM.

Details

Summary

We have a list of summary callbacks which are run after the transaction is
closed to show what has changed and what not. This patch makes it possible to
register those callbacks as transaction validators so that we can show summary
before committing the transaction and prompt user to accept the changes.

The goal of this is to implement pull --confirm.

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.