edit in pijul/src/remote/mod.rs at line 603
[2.23]→[3.10406:10428](∅→∅),
[3.11077]→[3.10406:10428](∅→∅) replacement in pijul/src/remote/mod.rs at line 698
[2.57]→[2.57:254](∅→∅),
[2.254]→[2.254:376](∅→∅) − if is_tag {
− Ok(CS::State(
− txn.state_from_prefix(&remote_ref.lock().states, h)?.0,
− ))
− } else {
− Ok(CS::Change(txn.hash_from_prefix_remote(&remote_ref, h)?))
+ {
+ if let Ok(t) = txn.state_from_prefix(&remote_ref.lock().states, h) {
+ return Ok(CS::State(t.0));
+ }
edit in pijul/src/remote/mod.rs at line 703
+ Ok(CS::Change(txn.hash_from_prefix_remote(&remote_ref, h)?))
replacement in pijul/src/remote/mod.rs at line 705
[3.12764]→[2.403:605](∅→∅) − if is_tag {
− Ok(CS::State(
− txn.state_from_prefix(¤t_channel.read().states, h)?.0,
− ))
+ if let Ok(t) = txn.state_from_prefix(¤t_channel.read().states, h) {
+ Ok(CS::State(t.0))
edit in pijul/src/commands/pushpull.rs at line 94
[3.113523]→[3.27022:27112](∅→∅) − /// Push tags instead of regular changes.
− #[clap(long = "tag")]
− is_tag: bool,
edit in pijul/src/commands/pushpull.rs at line 150
[3.19337]→[3.27204:27226](∅→∅) edit in pijul/src/commands/pushpull.rs at line 160
[2.759]→[3.27227:27251](∅→∅),
[3.19645]→[3.27227:27251](∅→∅) replacement in pijul/src/commands/pushpull.rs at line 230
[3.20360]→[3.27252:27436](∅→∅) − .to_upload(
− &mut *txn.write(),
− &mut channel,
− &repo,
− &mut remote,
− self.is_tag,
− )
+ .to_upload(&mut *txn.write(), &mut channel, &repo, &mut remote)
edit in pijul/src/commands/pushpull.rs at line 334
[3.20987]→[3.28421:28443](∅→∅) edit in pijul/src/commands/pushpull.rs at line 349
[2.782]→[3.28444:28468](∅→∅),
[3.21407]→[3.28444:28468](∅→∅) replacement in pijul/src/commands/pushpull.rs at line 415
[3.22017]→[3.28469:28659](∅→∅) − .to_download(
− &mut *txn.write(),
− &mut channel,
− &mut repo,
− &mut remote,
− self.is_tag,
− )
+ .to_download(&mut *txn.write(), &mut channel, &mut repo, &mut remote)
replacement in pijul/src/commands/pushpull.rs at line 535
[3.1301]→[3.30456:30514](∅→∅) − if touched_paths.is_empty() && !self.is_tag {
+ if touched_paths.is_empty() {
replacement in libpijul/src/change.rs at line 1528
[3.873911]→[2.1058:1223](∅→∅) − let mut r = std::fs::File::open(file).map_err(|err| if let Some(h) = hash {
− ChangeError::IoHash {
− err,
− hash: *h,
+ let mut r = std::fs::File::open(file).map_err(|err| {
+ if let Some(h) = hash {
+ ChangeError::IoHash { err, hash: *h }
+ } else {
+ ChangeError::Io(err)
edit in libpijul/src/change.rs at line 1534
[2.1237]→[2.1237:1287](∅→∅) − } else {
− ChangeError::Io(err)