NUAOEIXMKZO5KQWQ3TLQWO3RIXBPJU4QOPW7MGCV3ITDAUHFEK5QC
CBVGAARCMKJ2EARAQCVSPKMB43NATIYEY76BOQJLN7MXDUQVSJBAC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
CCFJ7VO3I73FE3MZRS5RSDRYNZVW7AXC345P4BXS7JIL2TU3LQJQC
YWUZQU3TBJJMUVMX2JJW2D2JLTN57YJA36YJXKHBF7UJ6GEBTWUAC
I24UEJQLCH2SOXA4UHIYWTRDCHSOPU7AFTRUOTX7HZIAV4AZKYEQC
I52XSRUH5RVHQBFWVMAQPTUSPAJ4KNVID2RMI3UGCVKFLYUO6WZAC
XR7MNOMU5PMOOEY2EPPUABZ7NOP432RDCWUET23ONPXTT3JQIFIAC
352WW5FPLUBGEHM7W5WF7N7AMO56LPLL4WSR44VIPCSZVQRDLN4AC
CCLLB7OIFNFYJZTG3UCI7536TOCWSCSXR67VELSB466R24WLJSDAC
VO5OQW4W2656DIYYRNZ3PO7TQ4JOKQ3GVWE5ALUTYVMX3WMXJOYQC
}
pub fn take_updatables(&mut self) -> HashMap<usize, InodeUpdate> {
std::mem::replace(&mut self.updatables, HashMap::default())
}
pub fn into_change<T: ChannelTxnT + DepsTxnT<DepsError = <T as GraphTxnT>::GraphError>>(
self,
txn: &T,
channel: &ChannelRef<T>,
header: crate::change::ChangeHeader,
) -> Result<
crate::change::LocalChange<
crate::change::Hunk<Option<Hash>, crate::change::Local>,
crate::change::Author,
>,
TxnErr<T::GraphError>,
> {
let actions = self
.actions
.into_iter()
.map(|rec| rec.globalize(txn).unwrap())
.collect();
let contents = if let Ok(c) = Arc::try_unwrap(self.contents) {
c.into_inner()
} else {
unreachable!()
};
Ok(crate::change::LocalChange::make_change(
txn,
&channel,
actions,
contents,
header,
Vec::new(),
)?)
use crate::change::{Atom, Hunk, Local, NewVertex};
use crate::pristine::{ChangeId, ChangePosition, EdgeFlags, Position};
use crate::change::{Atom, Hunk, LocalByte, NewVertex};
use crate::pristine::{ChangeId, ChangePosition, EdgeFlags, Position, Inode};