Pulling local tags
Dependencies
- [2]
DO2Y5TY5Tag synchronisation - [3]
TKEVOH7HFixing a bug when downloading changes, and making change download more efficient (more async) - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [5]
BNPSVXICFriendlier progress bars - [6]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [7]
UDHP4ZVBFixing SSH asynchronicity issues - [8]
YN63NUZOSanakirja 1.0 - [9]
X6YFD4WVDo not download changes if we already have them
Change contents
- replacement in pijul/src/remote/mod.rs at line 1085
if let CS::Change(h) = h {libpijul::changestore::filesystem::push_filename(&mut change_path_, h);if std::fs::metadata(&change_path_).is_err() {hash_send.send(CS::Change(*h))?;to_download.insert(CS::Change(*h));match h {CS::Change(h) => {libpijul::changestore::filesystem::push_filename(&mut change_path_, h);}CS::State(h) => {libpijul::changestore::filesystem::push_tag_filename(&mut change_path_, h); - replacement in pijul/src/remote/mod.rs at line 1092
libpijul::changestore::filesystem::pop_filename(&mut change_path_);}if std::fs::metadata(&change_path_).is_err() {hash_send.send(*h)?;to_download.insert(*h); - edit in pijul/src/remote/mod.rs at line 1097
libpijul::changestore::filesystem::pop_filename(&mut change_path_); - replacement in pijul/src/remote/mod.rs at line 1308
let c = if let CS::Change(c) = c {c} else {unreachable!()};let c = if let CS::Change(c) = c { c } else { continue }; - replacement in pijul/src/remote/local.rs at line 201
if let CS::Change(c) = c {libpijul::changestore::filesystem::push_filename(&mut self.changes_dir, &c);libpijul::changestore::filesystem::push_filename(&mut path, &c);super::PROGRESS.borrow_mut().unwrap()[pro_n].incr();if std::fs::metadata(&path).is_ok() {debug!("metadata {:?} ok", path);libpijul::changestore::filesystem::pop_filename(&mut path);continue;match c {CS::Change(c) => {libpijul::changestore::filesystem::push_filename(&mut self.changes_dir, &c);libpijul::changestore::filesystem::push_filename(&mut path, &c); - replacement in pijul/src/remote/local.rs at line 206
std::fs::create_dir_all(&path.parent().unwrap())?;if std::fs::hard_link(&self.changes_dir, &path).is_err() {std::fs::copy(&self.changes_dir, &path)?;CS::State(c) => {libpijul::changestore::filesystem::push_tag_filename(&mut self.changes_dir, &c);libpijul::changestore::filesystem::push_tag_filename(&mut path, &c); - replacement in pijul/src/remote/local.rs at line 210
debug!("hard link done");libpijul::changestore::filesystem::pop_filename(&mut self.changes_dir);}super::PROGRESS.borrow_mut().unwrap()[pro_n].incr();if std::fs::metadata(&path).is_ok() {debug!("metadata {:?} ok", path); - edit in pijul/src/remote/local.rs at line 215
continue;}std::fs::create_dir_all(&path.parent().unwrap())?;if std::fs::hard_link(&self.changes_dir, &path).is_err() {std::fs::copy(&self.changes_dir, &path)?; - edit in pijul/src/remote/local.rs at line 221
debug!("hard link done");libpijul::changestore::filesystem::pop_filename(&mut self.changes_dir);libpijul::changestore::filesystem::pop_filename(&mut path);