Mercurial > hg
view rust/hgcli/Cargo.toml @ 44544:13da36d77a3f
scmutil: add option to register summary callbacks as transaction validators
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`.
Differential Revision: https://phab.mercurial-scm.org/D8199
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 29 Feb 2020 12:58:13 +0530 |
parents | 964212780daf |
children | 26ce8e751503 |
line wrap: on
line source
[package] name = "hgcli" version = "0.1.0" authors = ["Gregory Szorc <gregory.szorc@gmail.com>"] license = "GPL-2.0" build = "build.rs" [[bin]] name = "hg" path = "src/main.rs" [features] # localdev: detect Python in PATH and use files from source checkout. default = ["localdev"] localdev = [] [dependencies] libc = "0.2.34" # We currently use a custom build of cpython and python27-sys with the # following changes: # * GILGuard call of prepare_freethreaded_python() is removed. # TODO switch to official release when our changes are incorporated. [dependencies.cpython] version = "0.1" default-features = false features = ["python27-sys"] git = "https://github.com/indygreg/rust-cpython.git" rev = "c90d65cf84abfffce7ef54476bbfed56017a2f52" [dependencies.python27-sys] version = "0.1.2" git = "https://github.com/indygreg/rust-cpython.git" rev = "c90d65cf84abfffce7ef54476bbfed56017a2f52"