either Import/Export is broken or it doesn't behave as expected. I'm trying to: Export an entire brain to xml and re-import into the same brain with changes made to the xml. A couple of problems:
1) GUIDs w/i the xml don't get honored when re-importing. When a thought's GUID is the same w/i the xml and w/i PB, PB should ask "Do you want to overwrite" or sth the like and NOT create new GUIDs for every imported thought.
Even better: Add versioning and reconcile e.g. the Notes-sections etc.. But just checking GUIDs and thus making thought-updates via xml-export/import possible would be fine.
2) Imported thoughts ALWAYS get linked to the currently active thought. But in case their GUID was previously linked to another parent, that's where they should go imho. I do understand there's a certain logic to link to the active thought, but this should only apply to parent-less "top-of-the-thought-chain"-thoughts, no? Btw: Importing new/fresh Xml into PB and including a Link to an existing (but not defined w/i the xml) thought w/i PB worked like a charm.
3) Tags that have no "clients" (thought's tagged with them) are not respected in the export of an entire brain. Bug imho. Hard to fix as Tags are represented as <Tag />-children of <Thought /> w/i the xml. (Dirty) Workaround: unlinked thought gets tagged w/ all tags and is exported as well.
I can confirm this for Linux and would be happy to know if anyone can reproduce on Win/Mac. Steps:
Create a brain, add children ("1;2;3;4") to main thought.
Tag them a bit and make sure one tag isn't used.
Go to File->Export->PB Xml & save.
Go to File->Import->PB Xml & navigate to Export from earlier an import. Import.
Thanks for looking into this!