Trait libpijul::TxnTExt

source ·
pub trait TxnTExt: TxnT {
Show 19 methods // Provided methods fn is_directory(&self, inode: Inode) -> Result<bool, Self::TreeError> { ... } fn is_tracked(&self, path: &str) -> Result<bool, Self::TreeError> { ... } fn iter_working_copy(&self) -> WorkingCopyIterator<'_, Self> { ... } fn iter_graph_children<'txn, 'changes, P>( &'txn self, changes: &'changes P, channel: &'txn Self::Channel, key: Position<ChangeId> ) -> Result<GraphChildren<'txn, 'changes, Self, P>, Self::GraphError> where P: ChangeStore { ... } fn has_change( &self, channel: &ChannelRef<Self>, hash: &Hash ) -> Result<Option<u64>, Self::GraphError> { ... } fn is_alive( &self, channel: &Self::Channel, a: &Vertex<ChangeId> ) -> Result<bool, Self::GraphError> { ... } fn current_state( &self, channel: &Self::Channel ) -> Result<Merkle, Self::GraphError> { ... } fn log<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, from: u64 ) -> Result<Log<'txn, Self>, Self::GraphError> { ... } fn log_for_path<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, pos: Position<ChangeId>, from: u64 ) -> Result<PathChangeset<'channel, 'txn, Self>, Self::GraphError> { ... } fn rev_log_for_path<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, pos: Position<ChangeId>, from: u64 ) -> Result<RevPathChangeset<'channel, 'txn, Self>, Self::DepsError> { ... } fn reverse_log<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, from: Option<u64> ) -> Result<RevLog<'txn, Self>, Self::GraphError> { ... } fn changeid_reverse_log<'txn>( &'txn self, channel: &Self::Channel, from: Option<L64> ) -> Result<RevCursor<Self, &'txn Self, Self::RevchangesetCursor, L64, Pair<ChangeId, SerializedMerkle>>, Self::GraphError> { ... } fn get_changes( &self, channel: &ChannelRef<Self>, n: u64 ) -> Result<Option<(Hash, Merkle)>, Self::GraphError> { ... } fn get_revchanges( &self, channel: &ChannelRef<Self>, h: &Hash ) -> Result<Option<u64>, Self::GraphError> { ... } fn touched_files( &self, h: &Hash ) -> Result<Option<Touched<'_, Self>>, Self::DepsError> { ... } fn find_oldest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, position: &Position<Hash> ) -> Result<Option<(String, bool)>, FileError<C::Error, Self>> { ... } fn find_youngest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, position: Position<Hash> ) -> Result<Option<(String, bool)>, FileError<C::Error, Self>> { ... } fn follow_oldest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, path: &str ) -> Result<(Position<ChangeId>, bool), FsErrorC<C::Error, Self>> { ... } fn iter_adjacent<'txn>( &'txn self, graph: &'txn Self::Channel, key: Vertex<ChangeId>, min_flag: EdgeFlags, max_flag: EdgeFlags ) -> Result<AdjacentIterator<'txn, Self>, TxnErr<Self::GraphError>> { ... }
}

Provided Methods§

source

fn is_directory(&self, inode: Inode) -> Result<bool, Self::TreeError>

source

fn is_tracked(&self, path: &str) -> Result<bool, Self::TreeError>

source

fn iter_working_copy(&self) -> WorkingCopyIterator<'_, Self>

source

fn iter_graph_children<'txn, 'changes, P>( &'txn self, changes: &'changes P, channel: &'txn Self::Channel, key: Position<ChangeId> ) -> Result<GraphChildren<'txn, 'changes, Self, P>, Self::GraphError>where P: ChangeStore,

source

fn has_change( &self, channel: &ChannelRef<Self>, hash: &Hash ) -> Result<Option<u64>, Self::GraphError>

source

fn is_alive( &self, channel: &Self::Channel, a: &Vertex<ChangeId> ) -> Result<bool, Self::GraphError>

source

fn current_state( &self, channel: &Self::Channel ) -> Result<Merkle, Self::GraphError>

source

fn log<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, from: u64 ) -> Result<Log<'txn, Self>, Self::GraphError>

source

fn log_for_path<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, pos: Position<ChangeId>, from: u64 ) -> Result<PathChangeset<'channel, 'txn, Self>, Self::GraphError>

source

fn rev_log_for_path<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, pos: Position<ChangeId>, from: u64 ) -> Result<RevPathChangeset<'channel, 'txn, Self>, Self::DepsError>

source

fn reverse_log<'channel, 'txn>( &'txn self, channel: &'channel Self::Channel, from: Option<u64> ) -> Result<RevLog<'txn, Self>, Self::GraphError>

source

fn changeid_reverse_log<'txn>( &'txn self, channel: &Self::Channel, from: Option<L64> ) -> Result<RevCursor<Self, &'txn Self, Self::RevchangesetCursor, L64, Pair<ChangeId, SerializedMerkle>>, Self::GraphError>

source

fn get_changes( &self, channel: &ChannelRef<Self>, n: u64 ) -> Result<Option<(Hash, Merkle)>, Self::GraphError>

source

fn get_revchanges( &self, channel: &ChannelRef<Self>, h: &Hash ) -> Result<Option<u64>, Self::GraphError>

source

fn touched_files( &self, h: &Hash ) -> Result<Option<Touched<'_, Self>>, Self::DepsError>

source

fn find_oldest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, position: &Position<Hash> ) -> Result<Option<(String, bool)>, FileError<C::Error, Self>>

source

fn find_youngest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, position: Position<Hash> ) -> Result<Option<(String, bool)>, FileError<C::Error, Self>>

source

fn follow_oldest_path<C: ChangeStore>( &self, changes: &C, channel: &ChannelRef<Self>, path: &str ) -> Result<(Position<ChangeId>, bool), FsErrorC<C::Error, Self>>

source

fn iter_adjacent<'txn>( &'txn self, graph: &'txn Self::Channel, key: Vertex<ChangeId>, min_flag: EdgeFlags, max_flag: EdgeFlags ) -> Result<AdjacentIterator<'txn, Self>, TxnErr<Self::GraphError>>

Implementors§