On Tuesday, February 16, 2021 at 3:17:18 PM UTC-6 Edward K. Ream wrote:
Rev 45e888 in devel ensures that the new code does nothing but move c.trimTrailingLines to be a local helper method of tangleCommands.skip_body. The "diff-branches/revs (one file)" script (in leoPy.leo) verifies leoTangle.py is exactly the same in the master and devel branches, except for the moved method.
Here is that script:
import os
import leo.commands.editFileCommands as efc
path = os.path.join(g.app.loadDir, '..', '..')
os.chdir(path)
efc.GitDiffController(c).diff_two_branches(
branch1='master', # old branch/rev
branch2='devel', # new branch/rev
fn='leo/core/leoTangle.py',
directory=None)
The should prove that new code should work exactly the same as the old, regardless of how weird trimTrailingLines is.
Summary
Leo's @root logic should now work exactly as before. As a result, the question of whether to retire support for @root is less urgent.
Nevertheless, I would like to retire support for @root. Unless I hear protests, Leo 6.4 will not support @root.
If you use @root, now is the time to make a pitch for retaining it.
Edward