##// END OF EJS Templates
rust-changelog: introducing an intermediate `ChangelogEntry`...
rust-changelog: introducing an intermediate `ChangelogEntry` Before this change, client code needing to extract, e.g, the Node ID and the description from a changeset had no other choice than calling both `entry_for_rev()` and `data_for_rev()`. This duplicates some (limited) computation, and more importantly imposes bad hygiene for client code: at some point of developement, the client code would have to pass over both entry and data in its internal layers, which at some point of development would raise the question whether they are consistent. We introduce the intermediate `ChangelogEntry` from which both conversion to the generic `RevlogEntry` and extraction of `ChangelogRevisionData` are possible. It might grow some convenience methods in the future. We keep the `data_for_rev()` method of `Changelog` for compatibility, pointing users at the more powerful alternative.

File last commit:

r45503:cf04f62d default
r51268:841b13e6 default
Show More
Cargo.toml
3 lines | 82 B | text/plain | TOMLLexer
Gregory Szorc
rust: implementation of `hg`...
r35587 [workspace]
Antoine Cezar
rhg: add rhg crate...
r45503 members = ["hg-core", "hg-cpython", "rhg"]
Gregory Szorc
hgcli: add stub PyOxidizer project...
r45128 exclude = ["chg", "hgcli"]