A more accurate safeguard for apply, to check if the output is nondestructive
Dependencies
- [2]
ISZ65SPQChecking that `pijul apply` does not destroy unrecorded changes - [3]
2D7P2VKJChange completions (where the whole progress bar story started) - [4]
C4MJ7D7QVerbose printing of conflicts to stderr - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [*]
R3H7D42UDebugging `pijul git`: proper error reporting
Change contents
- edit in pijul/src/commands/apply.rs at line 59[6.195413][7.816]
use libpijul::MutTxnT;use rand::Rng;// Channel used to check if we can output the repo.let forked_s: String = rand::thread_rng().sample_iter(&rand::distributions::Alphanumeric).take(20).map(char::from).collect();let forked = txn.write().fork(&channel, &forked_s)?; - replacement in pijul/src/commands/apply.rs at line 154
channel.clone(),forked.clone(), - replacement in pijul/src/commands/apply.rs at line 165
channel.clone(),libpijul::Algorithm::default(),forked.clone(), - edit in pijul/src/commands/apply.rs at line 178
debug!("actions {:#?}", rec.actions); - edit in pijul/src/commands/apply.rs at line 180
} else {txn.write().drop_channel(&forked_s)?; - edit in pijul/src/commands/apply.rs at line 185