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TOCWSCSXR67VELSB466R24WLJSDAC
ZRUPLBBTT4S6S7A3LOAHG4ONYEGPA5CFO4L2XBCNFKK45MWX3BDAC
JRENVH5DF2F4SOV7UNJENFA7VDI3H63XK76R3LFZK6QCW7JIBLSQC
ZHABNS3S6FSINO74FOI5KHYXYDTBPO4FQTTYTUS7NNKEVVNLYC4AC
LYTVEPH3W5UHF7MAYFWBT6NVNC42HEVKJGGMFDKUDZDNDOI33YJQC
TPEH2XNBS5RO4IEVKENVF6P65AH7IX64KK2JAYMSJT3J5GXO67EAC
fn record_all<T: MutTxnT, R: WorkingCopy, P: ChangeStore>(
repo: &mut R,
store: &P,
txn: &mut T,
channel: &mut ChannelRef<T>,
prefix: &str,
) -> Result<(Hash, Change), anyhow::Error>
where
R::Error: Send + Sync + 'static,
{
let mut state = Builder::new();
state.record(txn, Algorithm::default(), channel, repo, store, prefix)?;
let rec = state.finish();
let changes = rec
.actions
.into_iter()
.map(|rec| rec.globalize(txn))
.collect();
let change0 = crate::change::Change::make_change(
txn,
&channel,
changes,
rec.contents,
crate::change::ChangeHeader {
message: "test".to_string(),
authors: vec![],
description: None,
// Beware of changing the following line: two changes
// doing the same thing will be equal. Sometimes we don't
// want that, as in tests::unrecord::unrecord_double.
timestamp: chrono::Utc::now(),
},
Vec::new(),
);
let hash = store.save_change(&change0)?;
apply::apply_local_change(txn, channel, &change0, hash, &rec.updatables)?;
Ok((hash, change0))
}
Ok((hash, change0))
}
fn record_all<T: MutTxnT, R: WorkingCopy, P: ChangeStore>(
repo: &mut R,
store: &P,
txn: &mut T,
channel: &mut ChannelRef<T>,
prefix: &str,
) -> Result<Hash, anyhow::Error>
where
R::Error: Send + Sync + 'static,
{
let Ok((hash, _)) = record_all_change(repo, store, txn, channel, prefix);
let (contents, encoding) = if meta.is_file() {
self.rec.has_binary_files |= encoding.is_none();
let encoding = working_copy.decode_file(&item.full_path, &mut self.rec.contents)?;
]
[[package]]
name = "nom"
version = "5.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af"
dependencies = [
"lexical-core",
"memchr",
"version_check",