Do not touch the channel if this is a partial record
[?]
Jan 10, 2021, 6:31 PM
G6S6PWZEFJK7ARWBIFKDU6VYC5DCJ2YFJMWZOLLWWKU52R2QPXZACDependencies
- [2]
VNBLGT6GDo not output unmodified files when resetting (fix) - [3]
I52XSRUHMassive cleanup, and simplification - [4]
3KRGVQFUDo not update the mtime of unmodified files - [5]
QMTANHVNReset: only output changed files - [6]
XA23FMQMReset only files that have been modified - [7]
GHO6DWPIRefactoring iterators - [8]
DJYHARZ7Skipping old files when recording - [9]
VO5OQW4WRemoving anyhow in libpijul - [10]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [11]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in pijul/src/commands/record.rs at line 88
let no_prefixes = self.prefixes.is_empty(); - replacement in pijul/src/commands/record.rs at line 121
txn.touch_channel(&mut channel.borrow_mut(), Some(oldest));if no_prefixes {txn.touch_channel(&mut channel.borrow_mut(), Some(oldest));} - replacement in pijul/src/commands/record.rs at line 126
txn.touch_channel(&mut channel.borrow_mut(), None);txn.commit()?;if no_prefixes {txn.touch_channel(&mut channel.borrow_mut(), None);txn.commit()?;} - replacement in libpijul/src/record.rs at line 426
|| self.modified_since_last_commit::<T, _>(&channel, working_copy, &item.full_path)?)|| self.modified_since_last_commit::<T, _>(&channel,working_copy,&item.full_path,)?) - replacement in libpijul/src/record.rs at line 619
.duration_since(std::time::UNIX_EPOCH)?.as_secs()+ 2>= T::last_modified(channel)).duration_since(std::time::UNIX_EPOCH)?.as_secs()+ 2>= T::last_modified(channel)) - replacement in libpijul/src/pristine/mod.rs at line 1636
fn first_state_after<T: ChannelTxnT>(txn: &T, c: &T::Channel, pos: u64) -> Result<Option<(u64, Merkle)>, TxnErr<T::GraphError>> {fn first_state_after<T: ChannelTxnT>(txn: &T,c: &T::Channel,pos: u64,) -> Result<Option<(u64, Merkle)>, TxnErr<T::GraphError>> { - replacement in libpijul/src/pristine/mod.rs at line 1644
return Ok(Some((n, m)))return Ok(Some((n, m))); - replacement in libpijul/src/pristine/mod.rs at line 1650
fn last_state<T: ChannelTxnT>(txn: &T, c: &T::Channel) -> Result<Option<(u64, Merkle)>, TxnErr<T::GraphError>> {fn last_state<T: ChannelTxnT>(txn: &T,c: &T::Channel,) -> Result<Option<(u64, Merkle)>, TxnErr<T::GraphError>> { - replacement in libpijul/src/pristine/mod.rs at line 1666
pub fn last_common_state<T: ChannelTxnT>(txn: &T, c0: &T::Channel, c1: &T::Channel) -> Result<(u64, u64, Merkle), TxnErr<T::GraphError>> {pub fn last_common_state<T: ChannelTxnT>(txn: &T,c0: &T::Channel,c1: &T::Channel,) -> Result<(u64, u64, Merkle), TxnErr<T::GraphError>> { - replacement in libpijul/src/pristine/mod.rs at line 1675
return Ok((0, 0, Merkle::zero()))return Ok((0, 0, Merkle::zero())); - replacement in libpijul/src/pristine/mod.rs at line 1678
return Ok((aa, b, state))return Ok((aa, b, state)); - replacement in libpijul/src/pristine/mod.rs at line 1682
let mid = (a+b) / 2;let mid = (a + b) / 2; - replacement in libpijul/src/output/output.rs at line 198
.map_err(OutputError::from)?.map_err(OutputError::from)? - replacement in libpijul/src/output/output.rs at line 231
fn needs_output<R: WorkingCopy>(repo: &R, if_modified_after: Option<std::time::SystemTime>, path: &str) -> bool {fn needs_output<R: WorkingCopy>(repo: &R,if_modified_after: Option<std::time::SystemTime>,path: &str,) -> bool { - replacement in libpijul/src/output/output.rs at line 240
return d.as_secs() > 0return d.as_secs() > 0; - replacement in libpijul/src/output/output.rs at line 242
return falsereturn false; - replacement in libpijul/src/lib.rs at line 276
if_modified_since: Option<std::time::SystemTime>if_modified_since: Option<std::time::SystemTime>,