While working on python importer recently I've noticed strange behavior of 
the LeoPyRef.leo. If I just open this file using Leo and save it, I get a 
huge diff. I didn't have the time to investigate it further until now.

By bisecting, I've found that since the revision b7d66e100 (which was at 
the 18th Oct 2020) every committed version of LeoPyRef.leo has the same 
issue. 

The commit b7d66e100 added a button write-leoPyRef and I assume that since 
then this file was saved using this button. I can't see why this script 
produces different result than ordinary c.save, but it does. The tnodes in 
the LeoPyRef.leo produced by this script are not sorted according the tx 
attribute, like when the file is saved using normal c.save.

This produced huge difference in this commit 8601 insertions and 680 
deletions, and yet only one small script was added.

Unless tnodes are sorted, potentially every commit to this file can produce 
huge diffs.

Vitalije

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0835a63f-7979-4a93-8cfc-491885ff1cf5n%40googlegroups.com.

Reply via email to