Cursors cleanup
[?]
Mar 1, 2021, 8:19 AM
GNMZNKB46GTPTWBR452FITHPBCMYPSDLV5VZQSY7BX6OJHWTWTZACDependencies
- [2]
MXQ3U2DPShorter progress bars - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [4]
Q45QHPO4Feedback on network stuff - [5]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [6]
YN63NUZOSanakirja 1.0 - [7]
TKEVOH7HFixing a bug when downloading changes, and making change download more efficient (more async) - [8]
VBMXB443Retrying if the HTTP connection drops while reading the body - [9]
WTZXEWY7Flushing the futures pipeline when downloading over HTTP(S) - [10]
UDHP4ZVBFixing SSH asynchronicity issues - [11]
SAGSYAPXVarious version bumps - [12]
WLUID7NADo not block when downloading more than 100 changes over SSH - [13]
MU5GSJAWPartial push and pull (WARNING: breaks the existing protocol) - [14]
BNPSVXICFriendlier progress bars - [*]
FBXYP7QMForgot to add remote::http
Change contents
- replacement in pijul/src/remote/ssh.rs at line 810
progress.lock().unwrap().cursors[0].incr();progress.lock().unwrap()[0].incr(); - replacement in pijul/src/remote/mod.rs at line 367
pro.cursors.push(crate::progress::Cursor::Bar {pro.push(crate::progress::Cursor::Bar { - replacement in pijul/src/remote/mod.rs at line 373
pro.cursors.push(crate::progress::Cursor::Bar {pro.push(crate::progress::Cursor::Bar { - replacement in pijul/src/remote/mod.rs at line 457
progress.inner.lock().unwrap().cursors[1].incr();progress.inner.lock().unwrap()[1].incr(); - replacement in pijul/src/remote/local.rs at line 137
progress.lock().unwrap().cursors[0].incr();progress.lock().unwrap()[0].incr(); - replacement in pijul/src/remote/http.rs at line 97
progress.lock().unwrap().cursors[0].incr();progress.lock().unwrap()[0].incr(); - replacement in pijul/src/remote/http.rs at line 110
progress.lock().unwrap().cursors[0].incr();progress.lock().unwrap()[0].incr(); - replacement in pijul/src/progress.rs at line 12
pub cursors: Vec<Cursor>,cursors: Vec<Cursor>, - edit in pijul/src/progress.rs at line 17
}impl std::ops::Index<usize> for InnerCursors {type Output = Cursor;fn index(&self, i: usize) -> &Self::Output {self.cursors.index(i)}}impl std::ops::IndexMut<usize> for InnerCursors {fn index_mut(&mut self, i: usize) -> &mut Self::Output {self.cursors.index_mut(i)} - replacement in pijul/src/progress.rs at line 163
let k = (wb as usize * *i) / (*n - 1);for j in 0..wb as usize {if j < k {write!(stdout, "=")?;} else if j == k {write!(stdout, ">")?;} else {write!(stdout, " ")?if *n <= 1 {for _ in 0..wb as usize {if *i == 1 {write!(stdout, "=")?;} else {write!(stdout, " ")?}}} else {let k = (wb as usize * *i) / (*n - 1);for j in 0..wb as usize {if j < k {write!(stdout, "=")?;} else if j == k {write!(stdout, ">")?;} else {write!(stdout, " ")?} - edit in pijul/src/progress.rs at line 223
pub fn push(&mut self, c: Cursor) -> usize {let r = self.cursors.len();self.cursors.push(c);r} - edit in Cargo.lock at line 1388
name = "progress"version = "0.1.0"dependencies = ["terminal_size",][[package]]