Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/lib.rs @ 46599:1f55cd5b292f
rust: Add a log file rotation utility
This is ported to Rust from `mercurial/loggingutil.py`.
The "builder" pattern is used to make it visible at call sites what the two
numeric parameters mean. In Python they might simply by keyword arguments.
Differential Revision: https://phab.mercurial-scm.org/D10010
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 11 Feb 2021 15:51:11 +0100 |
parents | 6c778d20c8c2 |
children | bcdcb4423ae3 |
comparison
equal
deleted
inserted
replaced
46598:bc08c2331f99 | 46599:1f55cd5b292f |
---|---|
27 pub mod matchers; | 27 pub mod matchers; |
28 pub mod repo; | 28 pub mod repo; |
29 pub mod revlog; | 29 pub mod revlog; |
30 pub use revlog::*; | 30 pub use revlog::*; |
31 pub mod config; | 31 pub mod config; |
32 pub mod logging; | |
32 pub mod operations; | 33 pub mod operations; |
33 pub mod revset; | 34 pub mod revset; |
34 pub mod utils; | 35 pub mod utils; |
35 | 36 |
36 use crate::utils::hg_path::{HgPathBuf, HgPathError}; | 37 use crate::utils::hg_path::{HgPathBuf, HgPathError}; |