5HF7C67M4DZMYTCIG32XEQQ662AHQMIHTHUK7TAVSO52XLMFBZPAC
let to_upload = if !self.all {
let to_upload = if !self.changes.is_empty() {
let mut u = Vec::new();
let mut not_found = Vec::new();
for change in self.changes.iter() {
match txn.hash_from_prefix(change) {
Ok((hash,_)) => if to_upload.contains(&hash) {
u.push(hash);
}
Err(_) => if !not_found.contains(change) {
not_found.push(change.to_string());
}
}
}
if !not_found.is_empty() {
return Err((crate::Error::ChangesNotFound { hashes: not_found}).into());
}
check_deps(&repo.changes, &to_upload, &u)?;
u
} else if self.all {
to_upload
} else {