Do not download changes if we already have them
[?]
Dec 7, 2020, 9:08 PM
X6YFD4WVMUYJCR5IYPJH6UKYVWSA7DKBRVJ6XQFXHOE2TRYUTAHACDependencies
- [2]
BZSC7VMYaddress clippy lints - [3]
5QTMRUXNFixing a race condition between progress bars - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
BBKV6VMNFixing push/pull messages, and do not reverse the changes to download/upload - [6]
I52XSRUHMassive cleanup, and simplification - [7]
M5FK3ABTComplete dependencies when pushing and pulling - [8]
UDHP4ZVBFixing SSH asynchronicity issues - [9]
Q45QHPO4Feedback on network stuff - [10]
367UBQ6KForwarding SSH stderr, and progress bar for push - [11]
76PCXGMLPushing to, and pulling from the local repository - [12]
5DVRL6MFHard-unrecord - [13]
WKX5S4Z4remove unneccesary explicit lifetimes - [14]
HXEIH4UQPulling more than 100 changes at once - [15]
K6GWUOD5Styling progress bars
Change contents
- replacement in pijul/src/remote/ssh.rs at line 410
sender.send(hashes[*current]).await.unwrap();if sender.send(hashes[*current]).await.is_err() {break;} - replacement in pijul/src/remote/mod.rs at line 446
to_download: Vec<Hash>,to_apply: &[Hash], - replacement in pijul/src/remote/mod.rs at line 452
let to_download_ = to_download.clone();let mut to_download_ = Vec::new();for h in to_apply {libpijul::changestore::filesystem::push_filename(&mut change_path_, h);if std::fs::metadata(&change_path_).is_err() {to_download_.push(*h)}libpijul::changestore::filesystem::pop_filename(&mut change_path_);}let to_download = to_download_.clone(); - replacement in pijul/src/remote/mod.rs at line 485
for h in to_download.iter() {for h in to_apply { - replacement in pijul/src/remote/mod.rs at line 512
.template("✓ Applying changes {pos:>5}/{len}"),.template("✓ Applying changes {pos:>5}/{len}"), - edit in pijul/src/remote/mod.rs at line 518
debug!("waiting for spawned process"); - edit in pijul/src/remote/mod.rs at line 521
debug!("waiting for spawned process"); - replacement in pijul/src/remote/mod.rs at line 599
self.pull(repo, txn, channel, to_unrecord.clone(), false).await?;self.pull(repo, txn, channel, &to_unrecord, false).await?; - replacement in pijul/src/remote/mod.rs at line 619
self.pull(repo, txn, channel, to_pull, true).await?;self.pull(repo, txn, channel, &to_pull, true).await?; - replacement in pijul/src/remote/mod.rs at line 702
self.pull(repo, txn, local_channel, pullable, true).awaitself.pull(repo, txn, local_channel, &pullable, true).await - replacement in pijul/src/commands/pushpull.rs at line 358
.pull(&mut repo,&mut txn,&mut channel,to_download.clone(),self.all,).pull(&mut repo, &mut txn, &mut channel, &to_download, self.all)