main: rework loop over changes
Dependencies
- [2]
KPGRBRHSexport only the files touched by each change - [3]
EBE4NGXWAdd progress-interval flag - [4]
FIIUZR4LInclude file content - [5]
R3XMFPCYimport and export marks - [6]
UFSP7C7BExport metadata - [7]
OZUZ5H6DUse marks for commits - [8]
YNZMKRJDinclude more information in log - [9]
ATRA7XTTRIIR: factor out Repository struct - [*]
TQBJZLD7RIIR: hello, world
Change contents
- replacement in src/main.rs at line 47[4.5695]→[4.98:130](∅→∅),[4.1721]→[4.98:130](∅→∅),[4.130]→[4.5696:5746](∅→∅),[4.5746]→[4.246:303](∅→∅),[4.303]→[2.2081:2150](∅→∅),[2.2150]→[4.357:556](∅→∅),[4.357]→[4.357:556](∅→∅)
for i in 0..changes.len() {sandbox.add_change(&changes[i]).unwrap();if !stream.already_exported(&changes[i].state) {let files = sandbox.get_files(changes[i].hash).unwrap();let parent = if i == 0 {None} else {Some(changes[i - 1].state)};stream.write_commit(&changes[i], parent, &files);let mut parent = None;for ch in changes {sandbox.add_change(&ch).unwrap();if !stream.already_exported(&ch.state) {let files = sandbox.get_files(ch.hash).unwrap();stream.write_commit(&ch, parent, &files); - replacement in src/main.rs at line 59
count, changes[i].hashcount, ch.hash - edit in src/main.rs at line 63
parent = Some(ch.state)