D10086: dispatch: use detailed exit code 250 for keyboard interrupt

2021-03-01 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Among our users at Google, we're still seeing several percent of commands fail with exit code 255. I suspect keyboard interrupts is an important remaining

D10085: copies-rust: remove an unnecessary format!() inside assert!()

2021-03-01 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The `assert!()` macro supports formatting. Rust 2021 no longer supports an unnecessary `format!()` inside it. I noticed because I recently update my Rust

D10084: copies: tests and fix parallel computation of changed file information

2021-03-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The code was mixing variable name and misbehaving in some case. This changeset fix it and also add a tests to validate it does not regress. Without the fix,

D10083: tags: validate nodes in _getfnodes() and update cache in case of unknown nodes

2021-03-01 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY `hgtagsfnodescache` can contain unknown nodes due to cache corruption and this lead to a traceback on operations like `hg tags` as we don't validate nodes.

D10082: tags: redo .hgtags file node cache to work more like the revbranchcache [WIP]

2021-03-01 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Computing tags requires parsing .hgtags for all heads. Mercurial therefore keeps a cache to efficiently find the .hgtags version of a revision

D10081: changelog: rename parameters to reflect semantics

2021-03-01 Thread joerg.sonnenberger (Joerg Sonnenberger)
joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY `read` and `readfiles` can be used with a revision just as well, so follow the naming convention in revlog to reflect this. REPOSITORY rHG