Crates.io | vcsgraph |
lib.rs | vcsgraph |
version | 0.2.0 |
source | src |
created_at | 2021-10-07 13:00:42.644628 |
updated_at | 2021-12-21 12:46:57.873977 |
description | A library to perform various computation of a version control graph |
homepage | |
repository | https://foss.heptapod.net/mercurial/vcsgraph |
max_upload_size | |
id | 461728 |
size | 129,530 |
This repository contains the sources of the vcsgraph project, a Rust implementation of some revision graph manipulation functions.
This project targets Rust 1.48.0 for compatibility with most current Linux distributions.
The code needs to be properly formatted by using:
$ cargo fmt
For testing and evaluation purposes, some functions from this library are accessible through command line utilities shipped when the "cli" feature flag is present. Exposed functions can be listed by running:
$ cargo run --features cli --bin testing -- --help
$ cargo run --features cli --bin analytics -- --help
It's possible to empirically evaluate the performance impact of changesets by adapting and running the following snippet, which compares the running time of some subcommand of two revisions on some reference graph from the vcsgraph-reference repository:
./utils/benchmark.sh ../vcsgraph-reference/graph/mercurial-2018-08-01-b2561d4a.graph
You will need the hyperfine benchmarking tool for this.