Do a DFS on dependencies to complete the list
[?]
Dec 11, 2020, 9:44 PM
6WFOU7UXCYM5UWA5WVZ72XFRJWJA5GWCIAC5PI5NOEFHNFD3VKNACDependencies
- [2]
Q45QHPO4Feedback on network stuff - [3]
BE7GUCI2Completing dependencies only with changes the remote does not have - [4]
I52XSRUHMassive cleanup, and simplification - [5]
M5FK3ABTComplete dependencies when pushing and pulling - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in pijul/src/commands/pushpull.rs at line 497
let mut now_ = HashSet::new();let mut result = Vec::new();for n in now {let mut now_ = HashSet::with_capacity(original.len());let mut result = Vec::with_capacity(original.len());for &h in now {now_.insert(h);result.push(h);}let mut stack = now.to_vec();stack.reverse();while let Some(n) = stack.pop() { - replacement in pijul/src/commands/pushpull.rs at line 507
for d in c.get_dependencies(n)? {for d in c.get_dependencies(&n)? { - edit in pijul/src/commands/pushpull.rs at line 516
stack.push(d); - replacement in pijul/src/commands/pushpull.rs at line 519
if now_.insert(*n) {result.push(*n)if now_.insert(n) {result.push(n)