Trait libpijul::MutTxnTExt[][src]

pub trait MutTxnTExt: MutTxnT {
Show 16 methods fn apply_change_ws<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &mut Self::Channel,
        hash: &Hash,
        workspace: &mut ApplyWorkspace
    ) -> Result<(u64, Merkle), ApplyError<C::Error, Self::GraphError>> { ... }
fn apply_change_rec_ws<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &mut Self::Channel,
        hash: &Hash,
        workspace: &mut ApplyWorkspace
    ) -> Result<(), ApplyError<C::Error, Self::GraphError>> { ... }
fn apply_change<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &mut Self::Channel,
        hash: &Hash
    ) -> Result<(u64, Merkle), ApplyError<C::Error, Self::GraphError>> { ... }
fn apply_change_rec<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &mut Self::Channel,
        hash: &Hash
    ) -> Result<(), ApplyError<C::Error, Self::GraphError>> { ... }
fn apply_deps_rec<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &mut Self::Channel,
        hash: &Hash
    ) -> Result<(), ApplyError<C::Error, Self::GraphError>> { ... }
fn apply_local_change_ws(
        &mut self,
        channel: &ChannelRef<Self>,
        change: &Change,
        hash: &Hash,
        inode_updates: &HashMap<usize, InodeUpdate>,
        workspace: &mut ApplyWorkspace
    ) -> Result<(u64, Merkle), LocalApplyError<Self::GraphError>> { ... }
fn apply_local_change(
        &mut self,
        channel: &ChannelRef<Self>,
        change: &Change,
        hash: &Hash,
        inode_updates: &HashMap<usize, InodeUpdate>
    ) -> Result<(u64, Merkle), LocalApplyError<Self::GraphError>> { ... }
fn apply_recorded<C: ChangeStore>(
        &mut self,
        channel: &mut ChannelRef<Self>,
        recorded: Recorded,
        changestore: &C
    ) -> Result<Hash, ApplyError<C::Error, Self::GraphError>> { ... }
fn unrecord<C: ChangeStore>(
        &mut self,
        changes: &C,
        channel: &ChannelRef<Self>,
        hash: &Hash,
        salt: u64
    ) -> Result<bool, UnrecordError<C::Error, Self::GraphError>> { ... }
fn add_file(
        &mut self,
        path: &str,
        salt: u64
    ) -> Result<Inode, FsError<Self::GraphError>> { ... }
fn add_dir(
        &mut self,
        path: &str,
        salt: u64
    ) -> Result<Inode, FsError<Self::GraphError>> { ... }
fn add(
        &mut self,
        path: &str,
        is_dir: bool,
        salt: u64
    ) -> Result<Inode, FsError<Self::GraphError>> { ... }
fn move_file(
        &mut self,
        a: &str,
        b: &str,
        salt: u64
    ) -> Result<(), FsError<Self::GraphError>> { ... }
fn remove_file(&mut self, a: &str) -> Result<(), FsError<Self::GraphError>> { ... }
fn archive_with_state<P: ChangeStore, A: Archive>(
        &mut self,
        changes: &P,
        channel: &mut ChannelRef<Self>,
        state: &Merkle,
        extra: &[Hash],
        arch: &mut A,
        salt: u64
    ) -> Result<Vec<Conflict>, ArchiveError<P::Error, Self::GraphError, A::Error>> { ... }
fn archive_prefix_with_state<'a, P: ChangeStore, A: Archive, I: Iterator<Item = &'a str>>(
        &mut self,
        changes: &P,
        channel: &mut ChannelRef<Self>,
        state: &Merkle,
        extra: &[Hash],
        prefix: &mut I,
        arch: &mut A,
        salt: u64
    ) -> Result<Vec<Conflict>, ArchiveError<P::Error, Self::GraphError, A::Error>> { ... }
}

Provided methods

Register a file in the working copy, where the file is given by its path from the root of the repository, where the components of the path are separated by / (example path: a/b/c).

Register a directory in the working copy, where the directory is given by its path from the root of the repository, where the components of the path are separated by / (example path: a/b/c).

Register a file or directory in the working copy, given by its path from the root of the repository, where the components of the path are separated by / (example path: a/b/c).

Warning: this method unrecords changes until finding the state. If this is not wanted, please fork the channel before calling.

Implementors