mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 23:36:20 +00:00
fix(import): never clobber native content on re-import
Track imported pages/blocks, stable fallback ids, per-document savepoints, rename-safe page lookup, append on first import into existing pages. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3266ddda3a
commit
5fdc4bb48a
5 files changed
+500
-67
No files matched your search
@@ -29,7 +29,13 @@ fn main() {
|
||||
let report = import_logseq(src, &graph, &opts, |p| {
|
||||
let step = (p.done * 20).checked_div(p.total).unwrap_or(0);
|
||||
if last != (Some(p.phase), step) {
|
||||
eprintln!("{:?}: {}/{}", p.phase, p.done, p.total);
|
||||
eprintln!(
|
||||
"[{:.1?}] {:?}: {}/{}",
|
||||
started.elapsed(),
|
||||
p.phase,
|
||||
p.done,
|
||||
p.total
|
||||
);
|
||||
last = (Some(p.phase), step);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user