OU243LABJJZ3MQHYW2A2MYKW7KZLTZGHJJXDR2BIIIHXT5BSYN3AC
ZAEUSICJC3YOWGF6NZEQCQ34PHPRSBCJEP7FIWE6VIWJGVU734HQC
G6S6PWZEFJK7ARWBIFKDU6VYC5DCJ2YFJMWZOLLWWKU52R2QPXZAC
CCLLB7OIFNFYJZTG3UCI7536TOCWSCSXR67VELSB466R24WLJSDAC
ZHABNS3S6FSINO74FOI5KHYXYDTBPO4FQTTYTUS7NNKEVVNLYC4AC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
L4JXJHWXYNCL4QGJXNKKTOKKTAXKKXBJUUY7HFZGEUZ5A2V5H34QC
AEPEFS7O3YT7CRRFYQVJWUXUUSRGJ6K6XZQVK62B6N74UXOIFWYAC
DJYHARZ7CSRMX6ZFM6P52SM2EC57VTSHWAIMFSD7Q3EL7UYZGLXQC
let no_prefixes = self.prefixes.is_empty();
let no_prefixes =
self.prefixes.is_empty() && !self.ignore_missing && self.working_copy.is_none();
let (repo_path, mut working_copy) = if let Some(ref w) = self.working_copy {
(
CanonicalPathBuf::canonicalize(w)?,
Some(libpijul::working_copy::filesystem::FileSystem::from_root(w)),
)
} else {
(CanonicalPathBuf::canonicalize(&repo.path)?, None)
};
txn.record(
&mut state,
libpijul::Algorithm::default(),
channel,
working_copy,
changes,
"",
)?
if self.ignore_missing {
for f in ignore::Walk::new(&repo_path) {
let f = f?;
if f.metadata()?.is_file() {
let p = CanonicalPath::new(f.path())?;
let p = p.as_path().strip_prefix(&repo_path).unwrap();
txn.record(
&mut state,
libpijul::Algorithm::default(),
channel,
working_copy,
changes,
p.to_str().unwrap(),
)?
}
}
} else {
txn.record(
&mut state,
libpijul::Algorithm::default(),
channel,
working_copy,
changes,
"",
)?
}