Fixing the parsing of zombie resurrection in the change text format
[?]
Nov 23, 2020, 11:14 AM
ISQJRA3OJJRDMYVQX7XNYGJNMR6CPWIVAIFOS2NCIZH2ZAPDTC5QCDependencies
- [2]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [3]
UNZXTNSJChange text format: order dependencies in the order they were on the channel at record time
Change contents
- replacement in libpijul/src/change.rs at line 1807
write!(w, "Resurrecting zombie lines in {:?} ", local.path)?;write!(w, "Resurrecting zombie lines in {:?}:{} ", local.path, local.line)?; - replacement in libpijul/src/change.rs at line 1809
writeln!(w, " at line {}", local.line)?;writeln!(w, "")?; - replacement in libpijul/src/change.rs at line 1852
Regex::new(r#"(\d+)\. Resurrecting zombie lines in ([^:]+):(\d+) (\d+\.\d+)"#)Regex::new(r#"(\d+)\. Resurrecting zombie lines in (?P<path>"[^"]+"):(?P<line>\d+) (?P<inode>\d+\.\d+)"#) - edit in libpijul/src/change.rs at line 2068
))} else if let Some(cap) = ZOMBIE.captures(h) {if has_newvertices(current) {contents_.push(0)}let mut v = default_edgemap();v.inode = parse_pos(changes, &cap.name("inode").unwrap().as_str());Ok(std::mem::replace(current,Some(Record::ResurrectZombies {change: Atom::EdgeMap(v),local: Local {path: cap.name("path").unwrap().as_str().parse().unwrap(),line: cap.name("line").unwrap().as_str().parse().unwrap(),},})