Expand description
This crate contains a rust wrapper for the Breezy API, which is written in Python.
Breezy itself is being ported to Rust, but until that port has completed, this crate allows access to the most important Breezy APIs via Rust.
The Rust API here will follow the Breezy 4.0 Rust API as much as possible, to make porting easier.
§Example
use breezyshim::prelude::*;
use breezyshim::branch::open as open_branch;
breezyshim::plugin::load_plugins();
let b = open_branch(&"https://code.launchpad.net/brz".parse().unwrap()).unwrap();
println!("Last revision: {:?}", b.last_revision());Re-exports§
pub use branch::Branch;pub use controldir::ControlDir;pub use controldir::Prober;pub use forge::get_forge;pub use forge::Forge;pub use forge::MergeProposal;pub use forge::MergeProposalStatus;pub use lock::Lock;pub use revisionid::RevisionId;pub use transport::get_transport;pub use transport::Transport;pub use tree::RevisionTree;pub use tree::Tree;pub use tree::WorkingTree;pub use urlutils::join_segment_parameters;pub use urlutils::split_segment_parameters;pub use workspace::reset_tree;
Modules§
- bazaar
- Bazaar-specific functionality.
- branch
- Branches are the primary way to interact with the history of a project in Breezy.
- clean_
tree - Functions for cleaning a working tree by removing unknown files.
- commit
- Commit-related functionality.
- config
- Configuration handling.
- controldir
- The
ControlDirclass provides a high-level interface to control directories, e.g. “.bzr” or “.git” directories. - cvs
- Support for detecting CVS repositories.
- darcs
- Darcs prober.
- delta
- Detection of changes between trees.
- diff
- Generation of unified diffs between trees.
- error
- Error handling for the Breezy Python bindings
- export
- Export a tree to a directory.
- foreign
- Support for foreign version control systems.
- forge
- Code hosting services and merge proposals.
- fossil
- Support for detecting Fossil repositories.
- git
- Git version control system support.
- github
- Basic support for interacting with GitHub.
- gitlab
- Basic support for interacting with GitLab
- gpg
- GPG related functions and types.
- graph
- Graph traversal operations on revision graphs.
- groupcompress
- Group compression versioned files implementation Group compression versioned files implementation
- hooks
- Hooks
- interrepository
- Operations between repositories.
- intertree
- Operations between two trees.
- knit
- Knit versioned files implementation Knit versioned files implementation
- location
- UI-layer location handling
- lock
- Locking of Breezy objects.
- mercurial
- Mercurial prober.
- merge
- Tree merging.
- osutils
- OS-specific utilities.
- patches
- Patching support for Breezy.
- plugin
- Plugin loading and management.
- prelude
- Prelude for the breezyshim crate
- rename_
map - Detect renames between two trees based on file contents.
- repository
- Repository handling
- revisionid
- Revision ID type and related functions.
- status
- Status reporting functions.
- subversion
- Subversion repository prober.
- tags
- Revision tags
- testing
- Test utilities for the Breezy Rust bindings.
- transform
- Tree transformation API.
- transport
- Transport module
- tree
- Trees
- ui
- UI Factory
- urlutils
- URL manipulation utilities.
- version
- Version information for the Breezy library.
- versionedfiles
- Versioned files API for storing file content history Versioned files API for storing file content history
- weave
- Weave versioned files implementation Weave versioned files implementation
- workingtree
- Working trees in version control systems.
- workspace
- Convenience functions for automated operations on a VCS tree
Functions§
- init
- Initialize the Breezy library and Python interpreter.
- init_
bzr - Initialize Bazaar support in Breezy.
- init_
git - Initialize Git support in Breezy.
Type Aliases§
- Result
- Shorthand for the standard result type used throughout this crate.