Use memory working copy if not pulling to current channel
Dependencies
- [2]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [3]
YN63NUZOSanakirja 1.0 - [4]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [5]
PIQCNEEBUpgrading to Clap 3.0.0-alpha.5 - [6]
4RV7T4SRMigrate from `pijul::config` to `pijul-config` - [7]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [8]
5DVRL6MFHard-unrecord - [9]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [10]
I24UEJQLVarious post-fire fixes - [11]
GYGLQPVXMigrate from `pijul::current_dir` to `std::env::current_dir`
Change contents
- replacement in pijul-repository/src/lib.rs at line 7
use libpijul::DOT_DIR;use libpijul::pristine::sanakirja::SanakirjaError;use libpijul::{working_copy, TxnT, DOT_DIR}; - edit in pijul-repository/src/lib.rs at line 158
}pub fn working_copy(&self, channel: &str) -> Result<working_copy::Any, SanakirjaError> {let txn = self.pristine.txn_begin()?;let cc = txn.current_channel()?;let wc = if cc == channel {working_copy::Any::FileSystem(self.working_copy.clone())} else {working_copy::Any::Memory(working_copy::Memory::new())};Ok(wc) - edit in pijul/src/commands/mod.rs at line 82
let wc = repo.working_copy(txn.read().name(&channel.read()))?; - replacement in pijul/src/commands/mod.rs at line 92
&repo.working_copy,&wc,