Mercurial > hg
annotate rust/chg/src/lib.rs @ 47019:c4dbbaecaad3
rewriteutil: adapt "cannot %s while merging" to work with "change branch of"
`rewriteutil.precheck()` creates error messages by inserting a given
verb into a sentence. The `hg branch -r` command passes in "change
branch of" as the verb. That doesn't work well with "cannot %s while
merging" (making it "cannot change branch of while merging"). Let's
insert a "changeset" there to make it work better.
Building sentences like this seems obviously bad for i18n, but fixing
that is out of scope for this series, IMO.
Differential Revision: https://phab.mercurial-scm.org/D10530
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 28 Apr 2021 08:48:10 -0700 |
parents | a347a329e48d |
children |
rev | line source |
---|---|
39970
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
1 // Copyright 2018 Yuya Nishihara <yuya@tcha.org> |
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
2 // |
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
3 // This software may be used and distributed according to the terms of the |
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
4 // GNU General Public License version 2 or any later version. |
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
5 |
44738
1be605526c34
rust-chg: reimplement attach_io operation as async function
Yuya Nishihara <yuya@tcha.org>
parents:
44736
diff
changeset
|
6 mod attachio; |
44752
d6f706929120
rust-chg: reimplement ChgClientExt as ChgClient wrapper
Yuya Nishihara <yuya@tcha.org>
parents:
44751
diff
changeset
|
7 mod clientext; |
44753
a347a329e48d
rust-chg: reimplement locator by using async/await and tokio-0.2
Yuya Nishihara <yuya@tcha.org>
parents:
44752
diff
changeset
|
8 pub mod locator; |
39971
b1d8acd82d60
rust-chg: add parser for request messages sent to "S" channel
Yuya Nishihara <yuya@tcha.org>
parents:
39970
diff
changeset
|
9 pub mod message; |
39970
a8be2cff613f
rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents:
39967
diff
changeset
|
10 pub mod procutil; |
44751
94cace4b80ea
rust-chg: reimplement run_command operation as async function
Yuya Nishihara <yuya@tcha.org>
parents:
44750
diff
changeset
|
11 mod runcommand; |
44750
c794d0da5fb2
rust-chg: reimplement uihandler by using async-trait and tokio-0.2
Yuya Nishihara <yuya@tcha.org>
parents:
44738
diff
changeset
|
12 mod uihandler; |
39974
a9c5fc436fd5
rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents:
39972
diff
changeset
|
13 |
44752
d6f706929120
rust-chg: reimplement ChgClientExt as ChgClient wrapper
Yuya Nishihara <yuya@tcha.org>
parents:
44751
diff
changeset
|
14 pub use clientext::ChgClient; |
44750
c794d0da5fb2
rust-chg: reimplement uihandler by using async-trait and tokio-0.2
Yuya Nishihara <yuya@tcha.org>
parents:
44738
diff
changeset
|
15 pub use uihandler::{ChgUiHandler, SystemHandler}; |