Adding extra dependencies from the config file
[?]
Jan 12, 2021, 1:20 PM
KWAGWB73AMLJFK2Z7SBKHHKKHFRX7AQKXCWDN2MBX72RYCNMB36QCDependencies
- [2]
SEWGHUHQ.pijul/config: simplify remotes and hooks - [3]
737IBW6OFixing a warning in record - [4]
DJYHARZ7Skipping old files when recording - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [7]
I52XSRUHMassive cleanup, and simplification - [8]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump
Change contents
- edit in pijul/src/config.rs at line 57
#[serde(default)]pub extra_dependencies: Vec<String>, - replacement in pijul/src/commands/record.rs at line 1
use std::collections::HashMap;use std::collections::{HashMap, HashSet}; - replacement in pijul/src/commands/record.rs at line 12
use libpijul::{Base32, ChannelRef, MutTxnT, MutTxnTExt, TxnT, TxnTExt};use libpijul::{Base32, ChannelRef, ChannelTxnT, MutTxnT, MutTxnTExt, TxnT, TxnTExt}; - edit in pijul/src/commands/record.rs at line 65
let mut extra = Vec::new();for h in repo.config.extra_dependencies.iter() {let (h, c) = txn.hash_from_prefix(h)?;if txn.get_changeset(txn.changes(&channel.borrow()), c)?.is_none(){bail!("Change {:?} (from .pijul/config) is not on channel {:?}",h,channel.borrow().name)}extra.push(h)} - edit in pijul/src/commands/record.rs at line 112
&extra, - edit in pijul/src/commands/record.rs at line 194
extra_deps: &[libpijul::Hash], - replacement in pijul/src/commands/record.rs at line 235
let change =let mut change = - edit in pijul/src/commands/record.rs at line 237
let current: HashSet<_> = change.dependencies.iter().cloned().collect();for dep in extra_deps.iter() {if !current.contains(dep) {change.dependencies.push(*dep)}} - replacement in pijul/src/commands/record.rs at line 247
let change = if self.all {let mut change = if self.all { - edit in pijul/src/commands/record.rs at line 281
let current: HashSet<_> = change.dependencies.iter().cloned().collect();for dep in extra_deps.iter() {if !current.contains(dep) {change.dependencies.push(*dep)}}