rust/hg-direct-ffi/src/lib.rs
author Yuya Nishihara <yuya@tcha.org>
Sun, 09 Jun 2019 22:23:41 +0900
changeset 42457 43c8f72184f4
parent 40300 72b94f946e90
permissions -rw-r--r--
revset: fix merge() to fall back to changectx API if wdir specified I have a code which basically runs "0:wdir() & <user-revset>", and it crashed if merge() were passed in.

// Copyright 2018 Georges Racinet <gracinet@anybox.fr>
//
// This software may be used and distributed according to the terms of the
// GNU General Public License version 2 or any later version.

//! Bindings for CPython extension code
//!
//! This exposes methods to build and use a `rustlazyancestors` iterator
//! from C code, using an index and its parents function that are passed
//! from the caller at instantiation.

extern crate hg;
extern crate libc;

mod ancestors;
pub use ancestors::{
    rustlazyancestors_contains, rustlazyancestors_drop,
    rustlazyancestors_init, rustlazyancestors_next,
};