[LyX/master] Update layouts (run layout2layout.py)

Scott Kostyshak skostysh at lyx.org
Mon Oct 25 18:36:47 UTC 2021


On Mon, Oct 25, 2021 at 06:48:18PM +0100, José Abílio Matos wrote:
> On Monday, 25 October 2021 17.14.36 WEST Scott Kostyshak wrote:
> >     Update layouts (run layout2layout.py)
> > 
> >     There is nothing in the diff besides the format number changing from
> >     93 to 95. From what I understand, this is as expected since 93 -> 94
> >     and 94 -> 95 just add new layout tags.
> > 
> >     Updating the layouts makes it easier to test master. Otherwise, in
> >     some use cases layout2layout can be run hundreds of times which can
> >     make some things slow (e.g., opening documents or even opening the
> >     advanced find pane).
> 
> FWIW maybe it could help if this was part of the standard process of layout 
> format updates.
> 
> If problems occur that is the reason why we have git for. :-)
> 
> Not only that but the person that commits the change is the one that has the 
> best idea of how the update is supposed to go on.
> 
> What do you think?

That would be nice. I think that we could probably make the current code
more efficient (I think we rerun layout2layout in some places where
probably we can cache the result). But the main benefit is the one you
mention that the dev who updates the format knows best what the diff
should look like.

I think we recommend something similar for updating the LyX file format
(e.g., Development.lyx, Section 2.2).

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211025/3747bea1/attachment.asc>


More information about the lyx-devel mailing list